Forums

[resolved] Show a comlete list of post_tags as links in header.php (2 posts)

  1. lametiger
    Member
    Posted 2 years ago #

    Hello,

    I want to show a comlete list of all post_tags within a menue on top of my page (I put it into header.php). (View the menu at http://lametiger.kyrus.de ... "Artikel Sortieren / nach Inhalten")Those are supposed to show off as links in an unordered list. Unfortunatelly I don't quite understand how to work with the_tags() or related functions.

    Trying the same with the categories I used the following code:

    <ul>
    <?php wp_list_cats('sort_column=name&optioncount=0&hierarchical=0'); ?>
    </ul>

    This works well.

    Now, here's the problem:

    <ul>
    <?php wp_tag_cloud('smallest=10&largest=10&orderby=name'); ?>
    </ul>

    I get links, but they have the classes 'tag-link-xx'.

    My question: How can I remove these classes (so that these links reply to the style.css) and fit in the

    <li></li>

    Thanks for helping :)

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Why does the additional class cause a problem? Even if it does, why not just add it to the CSS for your menu list items?

Topic Closed

This topic has been closed to new replies.

About this Topic