Support » Themes and Templates » How to link tagged posts to header

  • My website is and I want the top headers such as “apps I love” to link directly to all posts in the category I have tagged with “app”. My template is color paper. Thanks!

Viewing 1 replies (of 1 total)
  • This will make a menu out of your categories.
    <?php wp_list_cats(‘sort_column=name&title_li=);?>
    you can exclude categories:
    <?php wp_list_cats(‘sort_column=name&title_li=&exclude=1,193,194,3,34’);?>
    Or you can build a static menu of categories(easier because you don’t have to exclude them from the wp_list_cats menu every time you create a new category)

    <li><a href="<?php echo get_category_link(1); ?>">category name</a></li>
    <li><a href="<?php echo get_category_link(2); ?>">category name</a></li>
    <li><a href="<?php echo get_category_link(3); ?>">category name</a></li>

Viewing 1 replies (of 1 total)
  • The topic ‘How to link tagged posts to header’ is closed to new replies.