[wp-hackers] 3.1 and custom rewrites for post types

Alex Hempton-Smith hempsworth at gmail.com
Sun Feb 27 23:16:04 UTC 2011


I understand that 3.1 introduces some fixes that allows me to accomplish
what I'm looking for - but because it's fresh out, Google isn't coming up
with much. I'm hoping somebody could lead me in the right direction.

Essentially, I have a custom post type called 'Treatments' and a custom
taxonomy called 'Treatment Types'.

I'd like my final URL's to look like:
www.example.com/treatments/[TREATMENT-TYPE]/[TREATMENT]

How would I accomplish that using the 'register_post_type' and
'register_taxonomy' functions?

Many thanks,
Alex


More information about the wp-hackers mailing list