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

Andy Staines andy at yellowswordfish.com
Sun Feb 19 00:11:42 GMT 2006


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?

Andy


More information about the wp-testers mailing list