WordPress.org

Ready to get started?Download WordPress

Forums

Creating an Archives page with list of posts within the unordered list (3 posts)

  1. ceee
    Member
    Posted 7 years ago #

    Hello,
    I'm trying to create an archives page which does this, if you're on a certain category:

    <h3>Recipes</h3>
    <ul>
    <li>Soups</li>
    <li>Salads</li>
    <li class="current-cat">Vegetables</li>
    <ul>
    <li>Asparagus with Soy Sauce</li>
    <li>Baby Bok Choy in Garlic</li>
    </ul>
    <li>Sweets</li>
    </ul>

    In other words, I'd like to have the posts themselves listed as well as the categories.

    I am able to use wp_list_cats to get the categories listed, and the_title seems to get the titles of that current category dumped onto the page... but I'd like to have them nested below the current category in a nice order like above.

    Any ideas?

    Thanks!

  2. vkaryl
    Member
    Posted 7 years ago #

    Hmmm. Try Clean Archives Reloaded from

    http://www.viper007bond.com/wordpress-plugins/clean-archives-reloaded/

    No need to reinvent the wheel after all....

  3. ceee
    Member
    Posted 7 years ago #

    While that's a beautiful plugin, I don't believe it does what I need. I don't want it displayed by date, I want it displayed by Category.

    For instance, if you are on the category page

    http://www.example.com/category/recipes/vegetables/

    you'll get the output of all the categories as well as the list of posts within the category which you are in.

Topic Closed

This topic has been closed to new replies.

About this Topic