WordPress.org

Forums

upPrev
[resolved] Next post instead of previous? (4 posts)

  1. The Silver Fox 93
    Member
    Posted 2 years ago #

    Can this plugin be configured to prompt for next post, instead of previous post?

    http://wordpress.org/extend/plugins/upprev/

  2. Marcin Pietrzak
    Member
    Plugin Author

    Posted 2 years ago #

    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;
     }
  3. The Silver Fox 93
    Member
    Posted 2 years ago #

    Thanks, it's working now. Great job.

  4. G_W
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • upPrev
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.