Taxonomy Dropdown Widget
[resolved] Display only taxonomies relevant to the current category (2 posts)

  1. polyfade
    Posted 2 years ago #

    Thanks for a great plugin!

    Is it possible to only show taxonomies relevant to the current category in question?

    For example, I have a custom post type, 'Merchandise.' In 'Merchandise, there are 2 categories, 'Clothes' and 'Jewelry.'

    My custom taxonomy, called 'Designers' includes a tag called 'Adidas'.

    If 'Clothes' has posts tagged with 'Adidas,' but 'Jewelry' DOES NOT, then I don't want to have 'Adidas' showing up in the select list on the 'Jewelry' page.


  2. Erick Hitter
    Code Wizard
    Plugin Author

    Posted 2 years ago #

    The plugin utilizes WordPress's get_terms() function, which includes filters that should make this possible. Additionally, my plugin applies a taxonomy_dropdown_widget_options filter to the options passed to get_terms(), which could be of use to you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Taxonomy Dropdown Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic