Opened 10 years ago
Closed 10 years ago
#30395 closed defect (bug) (duplicate)
next_post_link and previous_post_link excuding wrong category
Reported by: | kevinhaig | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.1 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
Testing my new theme I have discovered a bug in the post links
next_post_link( '<div class="right">%link <i class="fa fa-hand-o-right"></i></div>','%title',false,'190,191,192' );
if I want to exclude 189,190, and 191 id's I must use 190,191, and 192 id's.
Change History (5)
#2
@
10 years ago
I assume that trunk means 4.0.1-alpha.
I am retesting a theme that a few weeks ago was fine, so I assume it is the latest nightly.
I have also just checked wp_get_recent_posts and it is not working either with include or exclude arguments.
#3
@
10 years ago
I assume that trunk means 4.0.1-alpha.
No, trunk means http://develop.svn.wordpress.org/trunk. If this issue is indeed related to #29663, then it would be fixed in trunk but would be broken in 4.0.1-alpha. You could also try 4.1-beta1, released last week - it also contains the fix in #29663.
I have also just checked wp_get_recent_posts and it is not working either with include or exclude arguments.
This sounds unrelated. Could you open a separate ticket with details, including versions you've tested against?
Hi kevinhaig - Is this occurring only on trunk, or is it also happening in 4.0? Possibly related: #29663