Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

share|improve this question

1 Answer 1

Try this
 <?php echo get_the_term_list($post->ID, 'skills', '<h5>Project Role</h5><ul><li> ', '</li><li>', '</li></ul>' ); ?>
share|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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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