Support » Plugins » Include link category as class

  • Resolved dan121


    I’m trying display my links list like this, with the link category as a class:

    <li class="cat1"><a href="">Link 1</a></li>
    <li class="cat2"><a href="">Link 2</a></li>
    <li class="cat2"><a href="">Link 3</a></li>
    <li class="cat4"><a href="">Link 4</a></li>
    <li class="cat3"><a href="">Link 5</a></li>

    Is there any way to do this? This would get me close, but I have no idea how to add the category to the class:

    <?php get_links('-1', '<li class=>', '</li>', '', FALSE, '_id', FALSE,
    FALSE, 5, FALSE); ?>

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Include link category as class’ is closed to new replies.