[wp-trac] [WordPress Trac] #33211: get_adjacent_post is not working with post_format
WordPress Trac
noreply at wordpress.org
Fri Jul 31 01:36:15 UTC 2015
#33211: get_adjacent_post is not working with post_format
--------------------------+------------------------------------------
Reporter: valendesigns | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version:
Severity: normal | Keywords: needs-patch needs-unit-tests
Focuses: template |
--------------------------+------------------------------------------
When I was creating a custom post navigation function today for a client
with WP 4.2.3, specifically for post formats, I noticed that the following
does not return adjacent posts, even though they exist. I'm not sure if
this has ever worked or is a regression. Has anyone been successful in
using `get_adjacent_post` with `post_format`?
{{{
$prev = get_adjacent_post( true, '', true, 'post_format' );
$next = get_adjacent_post( true, '', false, 'post_format' );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33211>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list