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/this-is-a-custom-post-type
Any suggestions, recommendation will be appreaciated.
Thanks!
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/this-is-a-custom-post-type
Any suggestions, recommendation will be appreaciated.
Thanks!
Share Improve this question asked Nov 26, 2019 at 6:30 happyhappy 31 bronze badge 4 |1 Answer
Reset to default 1Welcome!
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/reference/functions/register_post_type/
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744968190a4603810.html
'public' => false
argument, but I don't know what the option in Pods looks like. – Jacob Peattie Commented Nov 26, 2019 at 6:41