Hide custom post type from search based on custom taxonomy

I’m looking to hide from search a few custom post type posts. I’m thinking that if I create a custom taxonomy for the custom post type with a term “hidden” then all posts checked will be hidden. Maybe some filter that I can add to the functions file? By chance has anyone done this or something similar? Please advise, thanks in advance 🙂

Regards,
Kendell

Read more here:: Hide custom post type from search based on custom taxonomy

Leave a Reply

Your email address will not be published. Required fields are marked *