Friday, June 8, 2018

How to Make a custom post type to not have a permalink for public

//so the code where we are passing arguments for registering/creating a new custom post type (register_post_type()), we need to add three parameters set as false:

'query_var' => false,
'public' => false,
'publicly_queryable' => false,

No comments:

Post a Comment