Make a custom post type not viewable as a single post
-
I’m working on a project where I want to create a custom post type that can only be viewed as part of a larger page, (it’ll be used for a “slider” on the homepage that may or may not link to other parts of the site).
So, how would I tell WP to not allow a certain post type to be rendered by single.php? Can it be configured anywhere, (aka the “right” way to do it), or should I make a single-mycustomtype.php file and simply put a die(); statement in it?
Thanks!
The topic ‘Make a custom post type not viewable as a single post’ is closed to new replies.