WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. polyfade
    Member
    Posted 11 months 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.

    http://wordpress.org/plugins/tag-dropdown-widget/

  2. Erick Hitter
    Member
    Plugin Author

    Posted 7 months 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.

Reply

You must log in to post.

About this Plugin

About this Topic