• Hi, I’m putting together a site for a local construction company and they want to list their projects in posts that are separated by categories. To do what they want, I need to figure out how to do two things, one considerably more complicated than the other.

    First, I want to have the title of the parent category listed a the top of the left hand sidebar. I’ve done this before, but for the life of me, I can’t remember how I did it.

    Second, and this is somewhat more difficult, I would like to have the latest posts submitted to the parent category listed in the sidebar below the title of the parent category.

    Is any of this possible? I believe that I will have to make a single-sidebar.php file to reflect exactly what I want to have happen. Is that true? Am I completely off base?

    Any help with these issues would be greatly appreciated.
    Thanks
    Dylan Fleming

Viewing 2 replies - 1 through 2 (of 2 total)
  • For part two, have a look at the query_posts() function ( http://codex.wordpress.org/Function_Reference/query_posts ) as that lets you put together various different lists of WordPress posts. You can limit them to a certain category. 😉

    Thread Starter dinkin123

    (@dinkin123)

    Thanks for the suggestion rachaely, however I wasn’t able to find anything on that page to do what I was looking for.

    I have figured out the solution to my first problem, so we can consider that one finished. To properly address my second problem, I have had some time to really figure out what I’m asking for, so here goes:

    What I’m looking for is a “More posts from this category” type situation. I’m looking to have about 10 posts from the same category listed in the sidebar of any single post. Now, this would be a cinch to solve if not for one problem, the client would like to have the common posts listed with images. I have done the legwork to figure out how to make TimThumb work with our theme, so I have the capability to list things that way, now I just need a way to marry the two.

    The particular sections I’m talking about can be seen here:
    http://skylineltd.asiostudio.com/category/markets-projects/commercial
    That category list has the sidebar how I would like it to look on each post contained within that category.

    http://skylineltd.asiostudio.com/prairie-berry-winery-hill-city-sd
    That is a single post in that category with the sidebar loading the incorrect way.

    I hope this additional information can bring about any shining revelations for anyone.

    Again, thank you for any and all help provided.
    Dylan Fleming

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show category content on single page’ is closed to new replies.