WordPress.org

Support

Support » How-To and Troubleshooting » Problems with NEXT and PREVIOUS tags

Problems with NEXT and PREVIOUS tags

  • So I’ve got some problems with the next_posts_link and previous_posts_link actually going to the right entry on a web site – http://www.helengoesto.com/wp/

    The photos are entries in their own category, and I have used this line of code in the index.php file to block out other categories from displaying there:

    <?php c2c_get_random_posts($num_posts = 1,
    $format = "%post_content%",
    $categories = '2 3 4 6',
    $order = 'DESC',
    $date_format = '',
    $authors = '',
    $include_passworded_posts = false); ?>

    Then, where the written entry is (which is a different category), I have the usual tags for displaying content within the Loop. I am using the default tags for PREVIOUS and NEXT:

    <?php next_posts_link('&laquo; Previous Entries') ?>
    <?php previous_posts_link('Next Entries &raquo;') ?>

    … but it doesn’t work. Every time I click the “Previous Entry” link, the next page displayed is the same written content.

    Again, the temporary site is http://www.helengoesto.com/wp/ — if you want to try testing out what I’ve attempted to describe here. I’m going to continue trying to work it out, but am in need of someone’s help right now …

    Thnx!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problems with NEXT and PREVIOUS tags’ is closed to new replies.
Skip to toolbar