Forums
(@dumbidellapira)
13 years, 1 month ago
In template write:
echo $wp_query->tax_query->queries[0]['taxonomy'] to display current taxonomy
echo $wp_query->tax_query->queries[0]['taxonomy']
echo $wp_query->queried_object->name to display current term of current taxonomy
echo $wp_query->queried_object->name
13 years, 9 months ago
Its difficult to understand what i mean? My english is understandable?
Anyway… I resolved the problem using WP_query insted of query_posts, but i dont know why.
G
the menu is: / ->category-1 ->category-2 ->page
The page template: query_posts('cat=category-1,category-2');
query_posts('cat=category-1,category-2');
When the page is visualized, category-1 is selected.