• Hi, i have problems with next and previous links. I have create a class for it and i have the links but they redirect me to the next or previous page (only link) but i see again the same content (the same posts) In other themes there is no problem.
    Here is my index.php

    [ long code moderated – use a pastebin service, like http://wordpress.pastebin.ca ]

    After <?php endwhile; ?> code, but i cannot do it.

    What is wrong? Can you hep me? It’s for a mod of Hemingway

    Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter mariogarcia

    (@mariogarcia)

    Ok, the code is
    http://wordpress.pastebin.ca/335834

    Can anyone help me?

    Have you tried to put the code after <?php endif; ?>?
    It should work, because posts_nav_link does not work in the loop (I believe).
    If you do this, don´t forget to put your “clear class” in the navigation.

    Thread Starter mariogarcia

    (@mariogarcia)

    I have tried it, but no results.
    I don’t understand about “clear class” i don’t know a lot about php and html. I have only included some plugins, widgetized a theme, translate iy and less more.

    Can you help me?

    Thread Starter mariogarcia

    (@mariogarcia)

    I have understood it, perfectly… no results yet 🙁
    I think it can be, because class navigation is bad defined. I don’t know a lot… it’s only my opinion

    Thread Starter mariogarcia

    (@mariogarcia)

    Anyone can help me?

    The problem is not with the previous and next posts link.

    it is with the first few lines of code.
    #
    // Here is the call to only make four posts show up on the homepage REGARDLESS of your options in the control panel
    #
    query_posts(‘showposts=8’);
    #

    see it always pulls the latest posts no matter what your page is.

    if you remove this line, it will work.

    Sadish

    sadish, I tried to remove the first lines of code you pointed to:

    <?php
    // Here is the call to only make two posts show up on the homepage REGARDLESS of your options in the control panel
    query_posts(‘showposts=2’);
    ?>

    to no avail. doesnt change nothing.

    could you please elaborate a bit further?
    this problem seems to plague a lot of Hemingway-users.
    prev/next-links are on the Hemigway roadmap as well (cf. http://warpspire.com/hemingway/hemingway-roadmap)

    those lines instruct the WP to pull the latest 2 / 8 or whatever number you put, posts.
    so even when you are in the next page, it always pulls those posts only.

    but when you remove that line, WP should do what it does by default, and pull different posts for the second page. It is strange to see it does not work that way in your website.

    try to apply some other theme and see if you are able to pull the next page posts, on the next page.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Previous and next links problems — help please’ is closed to new replies.