#128670 How to add my custom taxonomy term slug to a post permalink
sophie-188b939f 2 months, 1 week ago
I created a taxonomy called “city”. I added it to the default “Post” post type.
Right now, I have posts showing up as “example.com/category/post-name”. What I would like is a way to have the permalink be like this “example.com/city/category/post-name”. So for example, if the post titled “Welcome!” has a category “food” and its city is “newyork”, the permalink will be “example.com/newyork/food/welcome”.
Is this doable?
I searched the forum and found this: https://themes.artbees.net/forums/topic/how-to-add-taxonomy-in-custom-post-type-permalink/ but the answer of the support person is way off (it’s not about breadcrumbs but about permalinks).
Please help. Thank you!Alexander Hutsol Support Team 2 months, 1 week ago
Do you mean you want to show 2 categories in the URL?
Can you provide WP Dashboard credentials in the private reply and the post URL?
Regards.Privatesophie-188b939f 2 months, 1 week agoThis reply has been marked as private.Amir Rather Support Team 2 months, 1 week ago
By default the Single Pages won’t show category name However, You can create your own Breadcrumb structure by making a Custom Page Title template like this https://themes.artbees.net/docs/breadcrumb-element/
You can use the Yoast SEO breadcrumbs feature. Please refer to the article: https://yoast.com/help/implement-wordpress-seo-breadcrumbs/
and add the Yoast shortcode to show the breadcrumbs like https://take.ms/VwO9N
Please try and let us know 🙂sophie-188b939f 2 months, 1 week ago
I DO NOT need to show breadcrumbs. I would like the URL itself to have category/taxonomy slugs.
Alexander Hustol above was on the right track. Was he able to check the backend? He asked for the credentials.Alexander Hutsol Support Team 2 months, 1 week ago
You can try using this plugin:
or add custom code in the functions.php file as described here:
If you have any difficulties, please provide FTP credentials in the private reply.