This is a two parts problem.
1) I want to replace the custom post type with custom taxonomy term on my permalink. By default my URL structure is:
http://example.com/holiday/remote-brazil
holiday = CPT
remote-brazil = CPT item
I also have a custom taxonomy term for that.
adventures = CTT
My desired URL is:
http://example.com/adventures/remote-brazil
I solved the problem simply adding this line on the custom post type registration:
'rewrite' => array('slug' => '%holiday_category%','with_front' => false),
holiday_category = custom taxonomy.
It seems to be too easy :-) Is it that or am I missing something?
2) Now the problem. I'm using a commercial theme with regular updates (that's good), but if I make any changes there I'm surely that will lose them. My question is how do I write a plugin that will overwrite(or add) that specific line on the CPT from my theme?
Cheers.