[wp-trac] [WordPress Trac] #35082: get_adjacent_post() when using in term doesn't account for child terms

WordPress Trac noreply at wordpress.org
Mon Dec 14 21:09:21 UTC 2015


#35082: get_adjacent_post() when using in term doesn't account for child terms
-------------------------------+------------------------------
 Reporter:  WazzaJB            |       Owner:
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Posts, Post Types  |     Version:  trunk
 Severity:  normal             |  Resolution:
 Keywords:                     |     Focuses:  template
-------------------------------+------------------------------

Comment (by WazzaJB):

 Placing the following in single.php within the loop will show the previous
 and next links which use the aforementioned function.

 {{{#!php
 <?php
 // Previous/next post navigation.
 echo the_post_navigation( array(
     'in_same_term'       => true,
     'taxonomy'           => 'category',
 ) );
 }}}

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


More information about the wp-trac mailing list