How to detect /category and /tag base pages?
There is no good way to do this, but it can be done in a way. When you visit /category/ it serves it as though you are visiting a page called category. You can look for this like: global $wp_query; if ($wp_query->query_vars[‘pagename’] == “category”) { // This is base category } else if ($wp_query->query_vars[‘pagename’] == … Read more