[wp-hackers] remove a category name from the internal rewrite
	rules?
    Scott Plumlee 
    wp-hackers at plumlee.org
       
    Tue Sep 12 17:56:35 GMT 2006
    
    
  
Austin Matzko wrote:
> 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.
Even better.  I had started looking at the get_permalink and wasn't too 
excited about trying to figure out the best way to get the first 
'non-special' category (I should have elaborated, we have several such 
categories that serve different purposes).  Thanks for the idea.
    
    
More information about the wp-hackers
mailing list