• Hello all,

    This is an issue that many people have been trying to resolve, and I am in the process of building a site for which this is the last part. I guess that what I am trying to say is that I would TRULY appreciate your help. So, here we go…

    I have a few categories and a few taxonomies in my blog.

    As it stands at the moment, if I manually type example.com/category_name/?taxonomy_name=taxonomy_term then I will see a list of all the posts under “category_name” AND under the “taxonomy_term”.

    My question is… How can I make it so that I don’t have to manually type in that URL to get there? How can it be so that when someone clicks on one category and THEN clicks on one taxonomy term – they see a list of posts under BOTH the category and the taxonomy term?

    In other words, I would like these categories and taxonomies to act as filters. If you click on a category, you see all the posts under that category. If you then click on a taxonomy, then it acts as a filter and only shows the posts under that taxonomy WITHIN the category your are viewing. I hope this makes sense..

    This can currently be done with a widget from plugin called Taxonomy Drill Down, but I would like to be able to do it manually in the code.

    P.S. 1) I know how to query and display posts listed under BOTH a category AND a taxonomy, but I don’t know how to make it so that the query is picked up dynamically when someone clicks on those… At the moment, I just have a code in which I can set the category ID and the taxonomy ID and wherever I put it, it displays the posts listed under both the IDs I specified.

    P.S. 2) Also, can you please tell me how I can change the URL so that it becomes: example.com/category_name/taxonomy_term/ or example.com/taxonomy_term/category_name/ ?

    Thank you so much in advance!

  • The topic ‘Quering Posts By Taxonomy AND Category Relation’ is closed to new replies.