Custom Post Type "MUST NOT" be able to search via URL

Hello good day everyone,

Guys any idea how to hide permalinks from custom post types and should not be able to access via url. By the way, Im using Pods framework for my CPT's

Example: www.example.com/this-is-a-custom-post-type

Any suggestions, recommendation will be appreaciated.

Thanks!

Topic pods-framework permalinks custom-post-types Wordpress

Category Web


Welcome!

After creating a post type using pods, You can navigate to Advanced options and uncheck Public and Publicly Queryable.

Note: There are parameters like exclude_from_search, publicly_queryable, show_ui, and show_in_nav_menus that are inheriting value from public. You need to set them manually if you want to use them.

More info: https://developer.wordpress.org/reference/functions/register_post_type/

Advanced options of pod's custom post type

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.