WordPress.org

Ready to get started?Download WordPress

Forums

List of categories with post contents (3 posts)

  1. Chris Laursen
    Member
    Posted 2 years ago #

    http://samanthazalaznick.com shows what I'm trying to do. First you see the WP-generated list of my categories. Below that is a styled accordion menu of static html that shows what I want for my final product. Each external link within that menu would be the content of a WordPress Post (at least, that's how I'm imagining it). That page is for browsing by Topics, I'd have another page for browsings posts by Publications.

    This is my category structure:

    • Topics
      • Entertainment / TV
        • Interviews
        • Posts
        • Recaps
          • Mad Men
          • Modern Family
      • Restaurants / Bars
        • Where-To Guides
        • Listings
      • Videos
    • Publications
      • Huffington Post
      • New York Magazine

    I also want to be able to add new subcategories and have them show up automatically, so the code needs to look at all categories and child categories and child posts and display everything automatically in nested lists.

    How do I start going about building this??

    Thanks!

  2. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    this might get you started: Hierarchical Category List with Post Titles
    - however it does not take care of the accordion effect; you might need to include specific css classes for that.

  3. Chris Laursen
    Member
    Posted 2 years ago #

    Thanks alchymyth! I posted a comment on your site and e-mailed you, I think your method will work with some modification.

Topic Closed

This topic has been closed to new replies.

About this Topic