[wp-trac] [WordPress Trac] #43689: next_post_link()/previous_post_link() broken for custom post types in same custom taxonomy term

WordPress Trac noreply at wordpress.org
Wed Apr 4 09:11:15 UTC 2018


#43689: next_post_link()/previous_post_link() broken for custom post types in same
custom taxonomy term
--------------------------+-----------------------------
 Reporter:  Blackbam      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.9.5
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The link to the next post is being displayed however the third parameter
 $in_same_term seems to be completely ignored even though parameter
 $taxonomy is correct
 (https://codex.wordpress.org/Function_Reference/next_post_link).

 E.g. you are on singular pages of a custom post type "Job". You want to
 have the next post link of "Jobs" which are in the same "Job Group" (a
 custom taxonomy) e.g. "Developer". However next post link will deliver a
 next Job which is in the "Job Group" "Graphic Designer" even though
 $in_same_term was set to true.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43689>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list