WordPress.org

Ready to get started?Download WordPress

Forums

Display list of posts in sidebar (organized by sub-category) (2 posts)

  1. punkyb9
    Member
    Posted 3 years ago #

    I need to display a specific category in my sidebar, beneath that, I want to show all its sub-categories and then all posts in each category. I also need to exclude posts in another category that may appear.

    For example:

    Parent Category
    - Sub Category 1
    -- Post 1
    -- Post 2
    -Sub Category 2
    -- Post 1
    -- Post 2

    Here's my code so far that works well, except I also want to exclude a certain category that might also appear in this list (either by name or ID):

    [Code moderated as per the Forum Rules. Please use the pastebin]

  2. punkyb9
    Member
    Posted 3 years ago #

    Oops, I posted too much code. Here it is in full:
    http://pastebin.com/47dNUSe2

Topic Closed

This topic has been closed to new replies.

About this Topic