Post not using taxonomy template

The post won’t use those templates because those aren’t intended for posts. They’re intended for the archive pages for those terms/categories/tags. What’s more, it doesn’t make sense for it to work that way as it introduces ambiguity. Case in point, if I have category-red.php and category-blue.php, which template gets loaded if I visit a post … Read more

Custom taxonomy returns 404 even with saving permalinks

I’ve found my solution.. In my functions.php I found the following functions which returns a 404 on several types: function remove_wp_archives(){ //If we are on category or tag or date or author archive if( is_category() || is_tag() || is_date() || is_author() || is_tax() ) { global $wp_query; $wp_query->set_404(); //set to 404 not found page status_header(404); … Read more

How to add a taxonomy type in Menus?

Is this because WordPress knows no such thing as a taxonomy archive index page? My understanding is, that is not a thing. Hence, I wrote page-events.php as a page template, and the code content spits out the relevant queries to list the terms. Yes. All frontend pages in WP are post queries. WP looks at … Read more