I need help with displaying my custom taxonomies in a ul using the_term_list().

I can get it to list all the terms I want, but I need them in an unordered list, rather than just a list of links separated by comments.

Here's what I've got to work with:

<?php echo get_the_term_list($post->ID, 'skills', '<h5>Project Role</h5> ', ', ', '', ); ?>

Here's the WordPress function reference, if you need it: http://codex.wordpress.org/Function_Reference/get_the_term_list

Try this
 <?php echo get_the_term_list($post->ID, 'skills', '<h5>Project Role</h5><ul><li> ', '</li><li>', '</li></ul>' ); ?>
| improve this answer | |
  • That's what I came up with, but it lacks any sort of hierarchy. Thank you, though! – levigideon Jun 3 '11 at 4:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.