• Hello folks,

    i’ve got a problem with my next/previos links on my static home page. First problem is, there is only a next post link. Second problem is the next post link always goes so domain.de/page/2 but never to page 3. Otherwise it works properly.

    here is the code which is in my sidebar-page.php:

    <?php
    query_posts( array( 'showposts' => 5, 'paged' => get_query_var('page') ) );
    ?>
    <?php while (have_posts()) : the_post(); ?>
    <?php global $more;$more = 0; ?>
    
    /* some unnessesary html stuff */
    
    <?php endwhile;?>
    	<div class="navigation">
      <div class="alignleft"><?php next_posts_link('&laquo; &auml;ltere Artikel') ?></div>
      <div class="alignright" ><?php previous_posts_link('neuere Artikel &raquo;') ?></div>

    I hope you can help me!

    Summary:
    – previous button doesn’t occure
    – no page/3 of posts

    Thank you very much!

    Best regards

Viewing 4 replies - 1 through 4 (of 4 total)
  • there is only a next post link.

    even on the ‘previous’ page?
    how many posts do you have, and how many are set to show per page?

    the next post link always goes so domain.de/page/2 but never to page 3.

    alternatively, try:

    query_posts( array( 'showposts' => 5, 'paged' => get_query_var('paged') ) );

    ideally, please post a link to your site to illustrate the problem

    Thread Starter Daimoch

    (@daimoch)

    Hi alchymith,

    yes, even on the previous page. I have 12 post with 5 post per page but the page/3 doesn’t show up.

    Here is a link to the website:

    Click me

    Sorry, but i can’t see a difference between your code and mine? Mh..

    can you not control the number of posts per page from dashboard – settings – reading ?

    what is the current setting there?

    Thread Starter Daimoch

    (@daimoch)

    there is:

    starpage shows: static site

    max. blog posts: 2
    newsfeed: 2

    [ Please do not bump, that’s not permitted here. ]

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Pagination problem with next/previos link’ is closed to new replies.