• Resolved Fox

    (@pmfox)


    I have several custom taxonomies that go to few custom post types. They are hierarchical, like categories. We have wp_list_categories but there is nothing in the Codex about generating a list of the custom taxonomies.

    I found this in a search however, is there a better way to generate a list of all taxonomies?

    wp_tag_cloud( array( 'taxonomy' => 'custom-taxonomy', format => 'list', 'smallest' => 16, 'largest' => 16, 'unit' => 'px', ) );

    This code doesn’t display the hierarchical nature of the taxonomy. And, you have to limit the smallest and largest font size because it outputs a font-size css inline to work with a ‘tag cloud.’

    Is there a simple solution for this so I can create a better page template for these taxonomies?

Viewing 1 replies (of 1 total)
  • Thread Starter Fox

    (@pmfox)

    Nevermind. Right after posting, I realized I missed the option for the custom taxonomy in wp_list_categories

    wp_list_categories('orderby=name&taxonomy=custom-taxonomy');

    Now we’re good.

Viewing 1 replies (of 1 total)
  • The topic ‘How do I list custom taxonomies, like wp_list_categories?’ is closed to new replies.