[wp-hackers] remove a category name from the internal rewrite rules?

Austin Matzko if.website at gmail.com
Tue Sep 12 16:04:41 GMT 2006


On 9/12/06, Scott Plumlee <wp-hackers at plumlee.org> wrote:
> Hacking the get_permalink might be the best way, hadn't thought that
> simply.  :)

Instead of hacking it, use the 'post_link' filter it applies right
before returning the permalink, to change the permalink for those
posts in the "special" category.  It should be pretty straightforward,
as that filter gets passed both the permalink and the $post object.


More information about the wp-hackers mailing list