Building off of this question/answer, I've sucessfully implemented the single
view for my custom post types, but I'd also like to offer the same thing for taxonomies. I've looked through the docs and thought that is_taxonomy() would be perfect for filtering out exactly what taxonomy I'm on, but that's deprecated --> and it's replacement, taxonomy_exists(), doesn't necessarily seem like it would fit the bill.
So, first question is, can I do the same thing for taxonomies as single-posts described in the question I referenced? (I'm using his question edit solution currently). And secondly, is is_taxonomy
the way to go here?
Really appreciate any insight. Thanks!
Update: Is query the best way to check for the taxonomy?
is_taxonomy
/taxonomy_exists
for. They both (the former depreciated) checked if a taxonomy had been registered. Maybe you are after if the a taxonomy page is being requested?is_tag()
is_tax()
was exactly what I was looking for -if you want to re-submit that as an answer I can accept it. Thanks!