Exclude some or all custom post types
-
I see that I can exclude specific pages from my sitemap but how can I exclude an entire custom post type?
There are special custom post types in the theme I am using to accommodate some of the theme functions but these custom post types are not meant to be seen by users. With your plugin, it is listing the names of all of the custom post types in my theme and there aren’t even any pages listed in the sitemap under these additional custom post types.
So, if not already possible, please add a way to exclude custom post types and you may also want to add a check that if there aren’t any posts to display for a custom post type, you should not display the custom post type heading.
- The topic ‘Exclude some or all custom post types’ is closed to new replies.