How can I display a new taxonomy as a list instead of a cloud?
Justin Tadlock's excellent primer on taxonomies (Custom Taxonomies in WordPress 2.8), shows how to add cloud for taxonomy, but not list:
<?php wp_tag_cloud( array( 'taxonomy' => 'people', 'number' => 45 ) ); ?>
I know there is the list=format option for wp_tag_cloud but the resulting CSS is a mess.
There are numerous posts on how to display a tag list. Can this be adapted for taxonomies? (maybe using get_terms and get_term_link??)
http://wordpress.org/support/topic/220896.
byNetizen
Member
Posted 2 years ago #
Use the "format" parameter as well
<?php wp_tag_cloud( array( 'taxonomy'=>'people' , 'format'=>'list' ) ); ?>
You can find the tag cloud parameters here:
http://codex.wordpress.org/Template_Tags/wp_tag_cloud
Cheers!
pikemurdy
Member
Posted 1 year ago #
I'm getting here pretty late... but if you're just wanting a list of everything in a taxonomy, you may be better off using the wp_list_categories tag.
http://codex.wordpress.org/Template_Tags/wp_list_categories#Display_Terms_in_a_custom_taxonomy
pikemurdy,
Is there a way you could show related posts under each term? In a tree-child-branch sort of way.