• David

    (@cancerkitty)


    I would like to display a list of my custom taxonomies (services)in an unordered list,and then have each item wrapped in a class labeled with the “services-taxonomy-name” so that I can style the text and add an icon for each item.

    The end result would look something like this:

    <ul>
    <li class="services-hosting">Hosting</li>
    <li class="services-dns">DNS</li>
    </ul>

    So far all I’ve managed to do is display a list of the items. Anyone have some insight on this?

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

    (@cancerkitty)

    I think I’m getting there, but it’s not working just yet. Has anyone done something like this?

    <?php echo get_the_term_list( $post->ID, 'services', '?><h2>Services</h2>

      <li class="<?php get_term_link( $category->slug)">', '

    • ', '

    ' ); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Taxonomy UL with Classes for Each Item’ is closed to new replies.