Make WordPress Core

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's profile 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&nbsp;&nbsp;<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)

#1 @boonebgorges
10 years ago

Hi kevinhaig - Is this occurring only on trunk, or is it also happening in 4.0? Possibly related: #29663

#2 @kevinhaig
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 @boonebgorges
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?

#4 @kevinhaig
10 years ago

seems to be working now....did a beta update - still showing 4.0.1-alpha

#5 @boonebgorges
10 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Excellent. I'm going to mark this as a duplicate of #29663. If you continue to experience problems with wp_get_recent_posts(), please open another ticket. Thanks for the report.

Note: See TracTickets for help on using tickets.