[wp-testers] get_previous_post() and get_next_post()

Andy Staines andy at yellowswordfish.com
Sun Feb 19 09:36:58 GMT 2006


Ryan Boren wrote:
> Andy Staines wrote:
>> I've been using these functions successfully until today when I used 
>> the 'exclude_category' parameter which was ignored.
>> Looking at the code, the part that compiles the 'exclude' SQL uses a 
>> 'post_category' field in the 'posts' table which as far as I can see 
>> isn't used any more. Shouldn't this be joining to the 'post2cat' table?
>
> This is already fixed in trunk.
>
Thanks for the tip Ryan. I've patched my site - Andy


More information about the wp-testers mailing list