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

Jamie Talbot wphackers at jamietalbot.com
Sun Feb 19 09:11:02 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.

Could we possibly filter these as well, like we can in get_posts() and get_pages(), please?  That
way, we can be consistent when a user in on a single page.  I submitted a ticket and patch to allow
this last week...

http://trac.wordpress.org/ticket/2415

Cheers,

Jamie.

- --
http://jamietalbot.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFD+DYmrovxfShShFARAi9fAJ9wb8uZUhNojtgVjKYuej27pV4SHQCfdhtw
B/JZTLfY7p3XPoFxBjvb/zs=
=bOn0
-----END PGP SIGNATURE-----


More information about the wp-testers mailing list