How to put summary of latest posts in sidebar??? (3 posts)

  1. s4int
    Posted 8 years ago #

    To anyone who share and assist:

    I am a graphic designer customizing my own wordpress template for my portfolio. I'm not deeply educated about developing with php. But, here is my situation, and maybe I am not searching right in the forums to get my questioned answered. I have a 3 column layout. My left column will display the pages and blog entry posts I created through wp. The front page will show a static page of my latest works in my portfolio. So the blog section will have to be reached through the navigation I have. The middle column shows various stuff. And the Right column will display my sidebar.php. I want to be able to customized my sidebar to the point where it will be displaying my latest posts. And with this I mean the title of the post, the date, and a short summary of the entry with a read more function that will show up on the left column when clicked on. I am also looking to limit that display of entries to 2 or 3, then below them archives or categories (which I know how to display), and some other misc. stuff below that. So can anyone point me or reply with a solution to my sidebar project?



  2. MichaelH
    Posted 8 years ago #

    Since the template tag, wp_get_archives(), will only show the post title if using the type=postbypost parameter, then look at using the template tag, query_posts().

    Template Hierarchy
    Stepping Into Templates
    Editing Files

  3. drzax
    Posted 8 years ago #

    Yeah, well I know this is a little old now, but just in case people come back here:

    query_posts() is not a template tag. It is a function that will alter the posts available in the loop. I wouldn't use it unless you're fairly confident in what you're up to.

Topic Closed

This topic has been closed to new replies.

About this Topic