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?