WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Aaron
    Member
    Posted 2 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?

    http://wordpress.org/extend/plugins/display-widgets/

  2. Aaron
    Member
    Posted 2 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
    Member
    Posted 2 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
    Member
    Posted 2 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
    Member
    Posted 2 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);

    to:

    $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. sswells
    Member
    Plugin Author

    Posted 2 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;

    to:
    $dw_taxes[] = $post_tax;

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic