• Has anyone implemented a “next” / “previous” link at the bottom of their wordpress blog by using a hack or plugin? I know that the calendar archives already do this, but some people would find it easier to browse through the blog this way.
    I looked at the wiki hacks and plugins page, but I couldn’t specifically see this. Anyone know of one existing?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Sorry, I did a search in the forum, and found somewhat relevant previous posts about it. But I’m unsure how I would use the next_post, previous_post tags found in wiki. I understand about placing in the loop, but the parameters I would be using I’m confused about.
    Basically my blog is set to display only the last four posts in the entry page, and I would like a simple “Next” and if relevant, “Previous” link at the bottom of the default four blog entries.
    Can anyone help?

    With extra code to show the location:
    <?php endforeach; else: ?>
    <?php _e('Sorry, no posts matched your criteria.'); ?>
    <?php endif; ?>
    <?php posts_nav_link('::','&laquo;Newer', 'Older&raquo;'); ?>
    </div>
    <div id="menu">

    Add the posts_nav_link

    You must have ‘4 posts paged’ for this to work
    (or 1 or 5 or whatever, it’s the ‘posts paged’ that is important.

    Thread Starter stigli

    (@stigli)

    Thanks for that podz,
    I tweaked your code a bit to my specifications, changed the options to ‘posts paged’ and it works just great!

    I’m using the following code with the above mentioned option and it works perfectly.
    <p align=”center”>
    <?php posts_nav_link(”,’Previous Page’, ‘Next Page’); ?>
    One small problem though. I have my index set to exclude a category. When using the previos page to go to page 1 the excluded category is then included. Does anyone know of a fix for that?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Need a “next”/”previous” function for my blog’ is closed to new replies.