Get current category?
-
Is it possible to get the current category (a custom taxonomy) of the page the widget is being displayed on?
I’ve tried
get_query_var('cat');andget_query_var($wp_query->query_vars['taxonomy_name']);but both return zeros.Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Get current category?’ is closed to new replies.