Support » Plugin: upPrev » Next post instead of previous?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Marcin Pietrzak

    (@iworks)

    In file upprev.php change line 502 from:

    $where .= " AND post_date < '" . $post->post_date . "'";

    to this:

    $where .= " AND post_date > '" . $post->post_date . "'";

    diff for this:

    @@ -499,7 +499,7 @@
     {
         global $post;
         if ($post->post_date) {
    -        $where .= " AND post_date < '" . $post->post_date . "'";
    +        $where .= " AND post_date > '" . $post->post_date . "'";
         }
         return $where;
     }

    The Silver Fox 93

    (@the-silver-fox-93)

    Thanks, it’s working now. Great job.

    G_W

    (@g_w)

    and … in line of the above question, is it may apply for the following pages instead of previous pages of this

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Next post instead of previous?’ is closed to new replies.