• Resolved cjagers

    (@cjagers)


    I am converting a blogger site into a wordpress site, and have done everything successfully except for how the “previous posts” are managed. In blogger, if you click on a previous post, it moves to the top of the sidebar, and subsequent titles follow. But in wordpress, seems like those 10 most recent posts are fixed. I don’t like that.

    Can anyone refer me to a wordpress site that has this “previous post” functionality so I can use it? Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • You might want to post a link that has an example of what you’re after. It would be helpful

    Thread Starter cjagers

    (@cjagers)

    All blogger sites function like this, including my current site (which works the way I like)– http://chrisjagers.net
    Notice that as you click a previous post, that post moves to the top of my post list. This is different from a wordpress site where the “recent posts” never change in sidebar. Any advice is appreciated.

    There’s a template tag in WordPress which provides a link to a *single* previous post:

    http://codex.ww.wp.xz.cn/Template_Tags/previous_post

    For two or more we’d have to code a solution along the lines of what I outline here:

    http://ww.wp.xz.cn/support/topic/50473#post-277643

    Or make use of a plugin:

    http://wpthemes.info/posts/2004/12/07/previous-n-posts/

    (I believe the above works in WP2.)

    Thread Starter cjagers

    (@cjagers)

    Thank you thank you.

    Seems easier if you could just refer me to a wordpress site that already has uses this functionality successfully.

    As if I have an index of all WordPress sites and the various things they do? Sorry.

    Try this:
    http://paste.uni.cc/8852

    Thread Starter cjagers

    (@cjagers)

    Just got it to work! I just realized had to not only use the plug in, but also cut and paste the code….which is beyond simply putting it in my plugin folder and activating it. But thanks again, great advice…sorry about my jumping to conclusions (user error). Everythings works!

    I’m glad it’s working. One of the goals of these forums is to get users to that point. :)

    Hello. I’m trying to get this same plugin working on my site but I’m getting a parse error about a > …?

    Any idea why? Here’s the line it’s referring to.

    <?php get_previous_posts(6, ‘<li>’, ‘</li>’, true, $post->post_date,false) ?>

    Nevermind. I replaced the quotes around the li until I got it straight. You need to use the ‘ next to the Enter key on your keyboard.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Sidebar: recent posts vs previous posts’ is closed to new replies.