Exclude custom post type from search but keep custom taxonomy functional
-
For example I have a custom post type “testimonials” with rewrite slug “reviews” and a custom taxonomy “testimonials_category” with rewrite slug “reviews-cat”.
example.com/reviews/
shows my testimonials archive.
example.com/reviews-cat/some-term/
shows testimonials in specific category.
Hovewer if I enable “exclude from search” for the custom post type, taxonomy archives stop working. They still have the SEO title and breadcrumbs (so they’re properly detected) but they show that no posts found.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Exclude custom post type from search but keep custom taxonomy functional’ is closed to new replies.