Actually I needs to change the structure of my urls for the custom post type ( I also want to customise taxonomy url but only targeting post for this question to avoid confusion)
My custom post type is Property having slug
properties and it have a taxonomy 'Property Category' having slug
Currently the structure of custom post type is as follow:
For custom post type I want to include categories and sub categories in the url and remove
properties slug like
By using the plugin (Custom Post Type Permalinks) I am able to get this url
As you see that my above url have
properties in it and I have to remove it so everything is working fine till here for me.
After that, I have removed the properties from url and add function to check my property custom post type along with posts and pages so my url becomes
https://domain.com/property_category/sub_category/**/postname but it breaks means giving me 404.
This url is working but I didn't need this one
I believes that Wordpress
ReWrite API can solve this problem but unable to figure out the actual solution for it.
Any help in this regard will be greatly appreciated.