Skip to content

Instantly share code, notes, and snippets.

@NeilJS
Created March 20, 2012 17:21
Show Gist options
  • Save NeilJS/2138342 to your computer and use it in GitHub Desktop.
Save NeilJS/2138342 to your computer and use it in GitHub Desktop.
WP - display tags as UL list
//Usual method, not in a list:
<?php
while (have_posts()) : the_post();
the_tags('','','');
endwhile;
?>
//Use wp_list_categories for UL:
<?php
wp_list_categories( array('taxonomy' => 'post_tag', 'title_li' => '', 'orderby' => 'name', 'order' => 'ASC') );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment