Forums

Latest Blogs in Sidebar ASAP Thanks (4 posts)

  1. tcs_saskia
    Member
    Posted 1 year ago #

    Hi,

    Desperately trying to figure how to put the Latest Blog Posts (which can be seen on the homepage http://www.thecustomersshoes.tcsltd-sites.org/) into the side of each individual post (such as this http://www.thecustomersshoes.tcsltd-sites.org/blog/2010/07/06/things-are-changing-get-excited/). I thought I could just take the code from the homepage and put it in the loop but no luck.

    Any ideas?

    Thanks a lot in advance!

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

    in the sidebar code, you could put a line like this before the loop code you copied from the homepage:

    <?php query_posts('cat=0&posts_per_page=5'); ?>

    and after the end of the loop code in sidebar, add:

    <?php wp_reset_query(); ?>

    if in doubt, you can paste the code that you tried in the sidebar in a http://wordpress.pastebin.com/ and post the link to it here. someone might check it and might have suggestions.

  3. tcs_saskia
    Member
    Posted 1 year ago #

    Thanks for this, unfortuantely no luck though. I'm not sure I quite understand what the pastebin...

  4. MAS
    Member
    Posted 1 year ago #

    use once

    <?php query_posts('showposts=1'); ?>

    and after the end of the loop code in sidebar, add:

    <?php wp_reset_query(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic