custom rewrite rules for custom post type
-
hi,
i’m registering a custom post type and in the rewrite array try to do something like this:
'rewrite' => array('slug' => "explore/resources/".$CATEGORY, 'with_front' => false),
I want the rule to ‘dynamically’ get the posts’s category name somehow.. I also tried using %category% there but it doesn’t work either.
I need the post’s url to represent the entire path/route to it.. any ideas on how to achieve this?
thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘custom rewrite rules for custom post type’ is closed to new replies.