• alectra

    (@alectra)


    When I use this snippet in my code:
    <?php posts_nav_link(‘ — ‘, __(‘« Previous Page’), __(‘Next Page
    »’)); ?>

    I get this error message:

    WordPress database error: [You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ” at line 1]
    SELECT COUNT(DISTINCT ID) FROM

    I have tried to deactivate my plugins and all of that, the only thing that makes this error go away seems to be deleting the snippet. But I want to have a link to previous posts so that is not a solution for me.

    Before I upgraded to wp 2.0.1 all was fine, this problem came after the upgrading

Viewing 6 replies - 1 through 6 (of 6 total)
  • fruitfly

    (@fruitfly)

    I’m guessing (and this really is a guess) that it’s the format you’ve got there.

    Take a look at the documentation for the posts_nav_link template tag, and try some of the examples there and see if they work. If not, post back and we’ll see what we can find from there.

    Thread Starter alectra

    (@alectra)

    Hi!
    I have tried all of theese links now and no one work, I still get the error message.
    Maybe something went wrong when I upgraded my wp 1.5 to wp 2.0.1?!

    Same issue here; https://out-of-the-way.idv.tw/
    disable all plugins and switch to default theme didn’t help… sigh

    I did upgrade wp from 1.5 to 2.0.1.

    Also, another of my blog, which is host on the same machine and created soon after wp was upgraded, doesn’t have such problem.
    https://out-of-the-way.idv.tw/clv/

    It would be really nice to be able to turn off and on the previous/next in the admin…lol.

    Yet another install solves the problem, it seems.

    plugins, themes, language files and wp-config.php were kept. Also using old mysql database.

    Man i’m so confused…

    I have the same problem. upgraded to 2.0.2. I got the same error but another install doesn’t solve the problem. There are no plugins installed. I tried this but that doesn’t solve the problem either.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Error when using link to next and previous posts’ is closed to new replies.