WordPress.org

Ready to get started?Download WordPress

Forums

How to link tagged posts to header (2 posts)

  1. whoisrunnergirl
    Member
    Posted 4 years ago #

    My website is allisonrubin.com 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!

  2. mccormicky
    Member
    Posted 4 years ago #

    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)

    <ul>
    <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>
    </ul>

Topic Closed

This topic has been closed to new replies.

About this Topic