Display Widgets
Only some Custom Taxonomies showing up as options (6 posts)

  1. Aaron
    Posted 4 years ago #

    I am using the display widgets plugin and need to assign some widgets to custom taxonomies but only one of my custom taxonomies is showing up in the list and I actually have 5. Anyone know why this would be happening?


  2. Aaron
    Posted 4 years ago #

    Apparently it is only showing 1 taxonomy and it happens to be whichever taxonomy is declared last in my functions file.

    Seems to be a bug.

  3. superpikar
    Posted 4 years ago #

    hey I have the same problems too. 5 custom taxonomy in my site but only 4 displayed in display widget option.

  4. djvern
    Posted 4 years ago #

    Yes I have a similar problem too - I have about 30 custom taxonomies on my site but the display widget options are only showing 5 random ones - is there a fix for this yet?

  5. djvern
    Posted 4 years ago #

    I think my problem may be due to the fact that I have multiple custom post types on my site as well. I have worked out a fix by hard-coding these post types in the get_object_taxonomies call in the display-widgets.php file. So for example change line 246 from:

    $post_taxes = get_object_taxonomies($c);


    $post_taxes = get_object_taxonomies( array('post','custom-post-type-1','custom-post-type-2' ));

    That's worked for me - hope it's of some use!

  6. Steph Wells
    Plugin Author

    Posted 4 years ago #

    Sorry, didn't realize I wasn't getting email notifications here. Here's a fix that will included in the next release.
    Around line 278, change:
    $dw_taxes[$tax] = $post_tax;

    $dw_taxes[] = $post_tax;

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Display Widgets
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic