WordPress.org

Support

Support » Plugins and Hacks » Smarter Navigation » [Plugin: Smarter Navigation] Plugin works fine but suddenly starts jumping without order

[Plugin: Smarter Navigation] Plugin works fine but suddenly starts jumping without order

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m also noticing this problem. Once I click “view older posts” and move on to page 2 of the blog archives smarter navigation seems to skip every 2 posts. and when you go to page 3 it seems to skip every 3 posts. Seems like an issue with pagination/smarter nav.

    Need help!

    Figured it out, you need to change

    ‘posts_per_page’ => -1

    about halfway down the main.php file. This will compensate for the screwed up order.

    Plugin Author versusbassz

    @versusbassz

    Or replace this:
    line 136 of main.php

    $next_posts = self::get_posts( array(
    			'_sn_post' => get_queried_object(),
    			'_sn_op' => $previous ? '<' : '>',
    			'order' => $previous ? 'DESC' : 'ASC',
    			'posts_per_page' => 2,
    		) );

    on this:

    $next_posts = self::get_posts( array(
    			'_sn_post' => get_queried_object(),
    			'_sn_op' => $previous ? '<' : '>',
    			'order' => $previous ? 'DESC' : 'ASC',
    			'posts_per_page' => 2,
    			'paged' => 1
    		) );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Smarter Navigation] Plugin works fine but suddenly starts jumping without order’ is closed to new replies.
Skip to toolbar