my theme displays the productions as well as the events in the loop. For the productions that is really nice, the events are just blank pages for me though, would be nice to exclude them from the loop.
Just to explain in more detail: I got productions listed under https://www.mywebsite.com/production/test-event/
And then from the blog posts overview as well as the categories/ archives I get the links to https://www.mywebsite.com/wp_theatre_event/326/ and similar IDs.
The latter ones I would like to avoid.
I tried to change the custom_post_type settings by changing following this (second code entry): http://www.webtipblog.com/exclude-custom-post-type-search-wordpress/ i.e. with public->false; didn’t work for me though with the post type ‘wp_theatre_event’.
Any suggestions how to get rid of those event entries in any blog/ category/ search (archive) overview?
Thanks for your help,
- The topic ‘Hide event entries from blog/ archive’ is closed to new replies.