Support » Requests and Feedback » posts_nav_link bug?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Okay …

    I went over that page many times before I posted – which bit of that page should I be reading?

    Ok, resolved it.

    I needed to put a query_string in the query_posts <?php query_posts($query_string . 'order=DESC&showposts=2') ?> which was in front of The Loop. For anyone reading, it’s on this page and preserves information that would otherwise be lost:

    http://codex.wordpress.org/Template_Tags/query_posts

    polyfade

    (@polyfade)

    <?php query_posts($query_string . 'order=DESC&showposts=2') ?>

    this doesn’t always work.
    for example, i have a total of 12 posts.
    my admin number of posts to display is set for 3.
    if i specify:
    <?php query_posts($query_string . 'order=DESC&showposts=2') ?>
    i’ll get an error for /page/5

    ?query_string basically knows ahead of time how many pages it needs to produce based on your admin default. if it goes beyond that amount, you’ll receive an error.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘posts_nav_link bug?’ is closed to new replies.