WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #8107, comment 14


Ignore:
Timestamp:
03/07/2014 07:23:16 PM (6 years ago)
Author:
billerickson
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8107, comment 14

    initial v1  
    11In versions 3.8 and less, when using previous/next post links any posts with the same published date and time as the current post are skipped.
    22
    3 In version 3.9, you get stuck in a loop, going back and forth between posts in the same date. This is because the date_query has 'inclusive' => true and we're excluding the current post date.
     3In version 3.9, you get stuck in a loop, going back and forth between posts in the same date. This is because the date_query has 'inclusive' => true and we're excluding the current post.
    44
    55I played around with it a bit and couldn't come up with a single WP Query that queried either posts ordered by date with different published dates OR posts ordered by ID with the same published date. Doing 'orderby' => 'date ID' didn't do it.