• I have a problem with these two template tags:
    previous_post(); and next_post(); work fine, but something like previous_post(”,”,”,”,”,”); (also with some special values) doesn’t work. In this case the function returns nothing. How can I solve this problem?
    My WP version: 1.2
    Thanks for help,
    Toaster

Viewing 10 replies - 1 through 10 (of 10 total)
  • I am not a programmer so greg could you tell me _exactly_ where to put that code so I can have a previous/next at the top of my individual posts? Thanks.

    That’s not greg ??
    I have my similar code right underneath this line in index.php:
    <div id="content">

    That gave me an error
    Fatal error: Call to undefined function: add_count() in /home/meisheid/www/beyondtherim/index.php on line 35

    I just tried it also, and got the same error

    Leave the ‘add_count’ line out – that’s for another plugin.

    I got another parse error.
    Parse error: parse error, unexpected $ in /home/meisheid/www/beyondtherim/index.php on line 152
    Direct paste before
    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>

    Any additional thoughts about how to get this to work?

    Try this, added a couple of semi-colons and a little “} else {}” at the end. Now it works for me…
    <div id=”entry”>
    <?php if ($single) { ?>
    <?php previous_post(‘%’, ”, ‘yes’, ‘no’, 1, ”); ?>
    < < ||
    Hjem || > >
    <?php next_post(‘%’, ”, ‘yes’, ‘no’, 1, ”); } else { } ?>

    Thanks. With some minor mods I got what I wanted.

    Thread Starter Toaster

    (@toaster)

    I solved the problem with the following two tags from the default template of WP 1.5:

    previous_post(‘« %’,”,’yes’)
    next_post(‘ % »’,”,’yes’)

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘previous_post and next_post’ is closed to new replies.