WordPress Custom Post Types Rewrite

WordPress Custom Post Types Rewrite

I have a custom post type using WordPress 3.0 that has the following rewrite rule:

'rewrite' => array( 'slug' => 'events', 'with_front' => false ) 

which gives the following: domain.com/events/my-awesome-event/

How can I pass some additional info into the rule, such as the date, I'm wanting to have the following rewrite: domain.com/events/2010/my-awesome-event/


Export WordPress Nav Menus


Dynamic shortcodes and functions in WordPressWordPress Rewind Posts

91 out of 100 based on 66 user ratings 701 reviews