• This is a great plugin but I was trying to list terms from a hierarchical custom taxonomy and the problem was that it was not listed in the taxonomy dropdown.

    Looking into the code I found the problem on line 139:

    $taxonomies = get_taxonomies( array( 'show_tagcloud' => true ), 'objects' );

    show_tagcloud causes get_taxonomies to return only tag-like taxonomies. I decided to go for a quick fix by simply removing the first parameter. Thus making

    $taxonomies = get_taxonomies( '', 'objects' );

    And that returns all the taxonomies. Nav menus are also included but I didn’t experiment on listing any of them.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Justin Tadlock

    (@greenshady)

    show_tagcloud causes get_taxonomies to return only tag-like taxonomies.

    That is incorrect, assuming you mean non-hierarchical by “tag-like.” The show_tagcloud argument would be used upon taxonomy registration for taxonomies that you’d want to do things like grant the ability to list out a taxonomy’s terms. Really great way for widgets to determine whether to show the taxonomy.

    Thread Starter Ivaylo Draganov

    (@dragunoff)

    Aha, well then pardon me for misunderstanding the show_tagcloud argument. Then I should be passing it when creating new taxonomies. But the codex just states that:

    show_tagcloud
    (boolean) (optional) Whether to show a tag cloud in the admin UI for this taxonomy

    And what if I don’t want to have a tag-cloud in the admin UI and still use the widget without hacking? =)

    Thread Starter Ivaylo Draganov

    (@dragunoff)

    Ok, turns out that show_tagcloud has no effect on the UI when the taxonomy is hierarchical. So that makes it clear. But not clear enough in the Codex – might just slide in a minor edit.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Widgets Reloaded] Listing custom taxonomy terms’ is closed to new replies.