[wp-trac] [WordPress Trac] #33211: get_adjacent_post is not working with post_format

WordPress Trac noreply at wordpress.org
Fri Jul 31 08:48:26 UTC 2015


#33211: get_adjacent_post is not working with post_format
------------------------------+-------------------------
 Reporter:  valendesigns      |       Owner:
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:
Component:  Query             |     Version:
 Severity:  normal            |  Resolution:  worksforme
 Keywords:  needs-unit-tests  |     Focuses:  template
------------------------------+-------------------------
Changes (by valendesigns):

 * status:  new => closed
 * resolution:   => worksforme
 * milestone:  Awaiting Review =>


Comment:

 I'll open a ticket for the unit tests later. I found the issue in my
 clients theme, which is an old one I didn't create and has loads of code.
 It seems to have a filter on `get_previous_post_where` &
 `get_next_post_where` that removes the `post_format` taxonomy from the
 query. I was able to bypass and everything it working correctly. I guess I
 should have dug deeper earlier. Thanks for verifying that it does work.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33211#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list