WordPress.org

Ready to get started?Download WordPress

Forums

Taxonomy Widget
Display Empty Taxonomy's (2 posts)

  1. natebald
    Member
    Posted 1 year ago #

    So, I think your widget is great, but one question. I have a CPT with about 25 taxonomy's attached to it. The site is brand new so not all taxonomy's have been associated with CPT's. But I need a way for them to appear in the dropdown list.

    Ideal, would be for a page, once selected, to say, there are no xxx for this taxonomy. OR something along those lines. Thanks for you help in advance.

    http://wordpress.org/extend/plugins/taxonomy-widget/

  2. Oren Yomtov
    Member
    Posted 1 year ago #

    I've encountered the same problem.

    Enjoy the snippet I made:

    function oren_show_empty_taxonomies($args) {
    	$args['hide_empty'] = 0;
    
    	return $args;
    }
    add_action( 'mfields_taxonomy_widget_args_global', 'oren_show_empty_taxonomies' );

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.