Support » Plugin: Tag Groups » filter tags by category

  • Resolved erwanpia


    Hi is it possible to display only tags that are used in current category when filter is displayezd on category p age ? and keep the category filter on the tag link ?


Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chris


    How do you mean that tags are used in a category? Normally tags are only used in posts or something similar like posts.

    It is possible to display different tag groups depending on the category, see–display-a-different-tag-cloud-on-each-category-page-

    Thread Starter erwanpia


    Thanks that would answer the first question, second question is can we link to posts filtered by the tag AND the current catogory when displayed on category archive page ? thks

    Plugin Author Chris


    That requires two parts: 1st you need to add a piece to the link and 2nd WordPress needs to understand that it has to filter by tag and category.

    For the first part you can use the parameter link_append in the tag cloud. The values need to be dynamically generated – it’s a bit tricky, but theoretically it should work.

    Then you need another plugin or code that reads the parameters that you send in the link and does the actual filtering. You could write something that modifies the post query. The Tag Groups plugin doesn’t do that, it only generates the tag cloud and the links. What happens after clicking is something different.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.