Opened 8 years ago
Closed 3 weeks ago
#43689 closed defect (bug) (worksforme)
next_post_link()/previous_post_link() broken for custom post types in same custom taxonomy term
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | |
| Component: | Posts, Post Types | Keywords: | reporter-feedback |
| Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (5)
#1
@
8 years ago
- Keywords reporter-feedback added
Hey there :)
43689.test.diff is a test scenario closely resembling your description, I think. The test passes with flying colors. i.e. worksforme
What am I missing?
This ticket was mentioned in Slack in #core by sirlouen. View the logs.
3 weeks ago
#4
@
3 weeks ago
- Milestone Awaiting Review deleted
- Resolution set to worksforme
- Status changed from new to closed
- Version 4.9.5 deleted
Since no one has been able to reproduce this and more than 8 years have passed since then, it's time to close this as worksforme
@Blackbam feel free to comment if you can provide additional information on how to reproduce this, and I will be happy to reopen and test it accordingly.
test scenario