Hi,
My permalink structure is /%category%/%postname%/
I have 2 categories:
hotel
restaurant
If I create a WP post, and assign to both categories, it can be opened using any of these 2 urls:
hidden link
hidden link
I have created a new CTP "location" which can use also the standard WP categories.
If I create a new location, also assigned to both categories, I also expect to be able to use:
hidden link
hidden link
Sadly, it doesn't work, and I don't know what I am doing wrong.
Any help is appreciated.
Thanks
Hello and thank you for contacting the Toolset support.
With Custom Post Types this is not possible by default. Custom Post Types do not allow placeholders (%category%) which are necessary to create dynamic URLs. In the native Posts type, you can use things like %%category%% to create your Permalink. With Custom Post Types that is not possible, due to WordPress restrictions.
I still think that this could be possible by custom code, which is outside of the scope of this support forum.
For references here are some pages that may help:
- https://stackoverflow.com/questions/16664579/url-rewriting-via-wordpress-rewrite-or-htaccess
- hongkiat.com/blog/wordpress-url-rewrite/
- https://toolset.com/forums/topic/hierarchical-child-post-type-url/
- https://toolset.com/forums/topic/custom-taxonomies-not-showing-on-permalink/#post-16949
- https://toolset.com/forums/topic/adding-custom-taxonomy-to-url-and-permalink-not-working/