[wp-hackers] Custom post-types and taxonomy rewrite

Mike Schinkel mikeschinkel at newclarity.net
Sun Aug 22 08:17:08 UTC 2010


It's not easy. Hence http://core.trac.wordpress.org/ticket/12935

-Mike

On Aug 21, 2010, at 8:35 PM, Lox wrote:

> Hello,
> 
> I give a lot of importance in my url. I have a post-type called 'schools'
> and a taxonomy for it called 'type'. The rewrite for the post-type is
> 'school' so http://mysite.com/school/the_school_name/ is giving me the page
> for "the_school_name" school.
> 
> Now I need to categorize them, so I created a taxonomy called 'school_type'.
> How can I have the 'school_type' slugs in front of the schools permalinks ?
> 
> Basically I need to have:
> 
> http://mysite.com/school/the_school_type/the_school_name/
> 
> I tried to add %category% to the postype rewrite parameter but it failed.
> 
> Best regards
> 
> -- 
> Lox
> lox.dev at knc.nc
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers



More information about the wp-hackers mailing list