I have category page where I display articles in a random way. There's a taxonomy by city in my articles.
So at the top of my page, there are some links in order to display the category with taxonomy filter.
At the beginning, my links looked like :
<a href="<?php $category_id = get_query_var('cat'); echo get_category_link( $category_id ); ?>?tag=paris">Paris</a> <a href="<?php $category_id = get_query_var('cat'); echo get_category_link( $category_id ); ?>?tag=london">London</a> etc ..
So I could stay in the same category, and apply my filter.
With the random behaviour, I had to add this to call my articles :
<? query_posts(array( 'orderby' => 'rand' )); if (have_posts()) : while (have_posts()) : the_post(); ?>
But now my filters don't work anymore.
I'd like to avoid to call a specific category because I have very much categories. And every time I need to have my cities-links at the top. So if I could use the same template, it would be more handy.
I'm not very good with php.... Does someone has an idea ?
I thank you in advance for your help