WordPress.org

Ready to get started?Download WordPress

Forums

PostLists-Extension Navigation
Bugfix in next link placeholder max offset (1 post)

  1. ircf
    Member
    Posted 3 years ago #

    Hello,

    I had a problem with Ajax support, next link was displayed even on last post. Here is a "fix" that worked for me :

    In ple-navigation.php, function ple_navigation_placeholdervalue, around line 113, replace line :

    if( count($posts)>=$args['numberposts'] )

    By lines :

    $nextargs = $args;
    $nextargs['offset']++;
    $nextposts = pl_getposts( $nextargs );
    if (count($nextposts)>0)

    Hope this helps.

    http://wordpress.org/extend/plugins/ple-navigation/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic