Taxonomy Widget
Display Empty Taxonomy's (2 posts)

  1. natebald
    Posted 3 years 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.


  2. Oren Yomtov
    Posted 2 years 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

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

About this Topic


No tags yet.