HomePage › Forums › Themes Support › Triply – Tour Booking WordPress Theme › Destination Slug
Tagged: slug
- This topic has 9 replies, 2 voices, and was last updated 2 years, 1 month ago by Billy Nguyen.
-
AuthorPosts
-
February 21, 2022 at 5:06 pm #20370maucastSupport Expired
Hello
I would like to have the slug of the destinations as follows (for example)
domain.com/destinations/africa/morocco
currently it is like that, the parent (africa) is cut off from the url:
domain.com/destinations/morocco
How can I have the parent (africa) in the url instead?
Thanks!
February 22, 2022 at 1:24 pm #20394February 22, 2022 at 4:32 pm #20403maucastSupport ExpiredHi
can you help me a little more?
I added these 3 snippets to functions.php from this guide. I added this snippet to make hierarchical URLs:
register_taxonomy('genre',array('book'), array( 'hierarchical' => true, // this makes it hierarchical in the UI 'labels' => $labels, 'show_ui' => true, 'query_var' => true, 'rewrite' => array( 'hierarchical' => true ), // this makes hierarchical URLs ));
but I can’t get it, I only want this for Destinations. Maybe I’m wrong where to put basename /% taxonomy_name% (custom post type slug)
February 23, 2022 at 11:44 am #20444Please send admin web account for me, I will check and try to help you.
February 23, 2022 at 3:12 pm #20451maucastSupport ExpiredThis reply has been marked as private.February 24, 2022 at 2:41 pm #20496Hi again,
I have just fixed this issue, please recheck your site.
– https://stg.civitavecchiaport.org/cruises/celebrity-cruises/beyond/– https://stg.civitavecchiaport.org/cruises/costa-cruises/toscana/
February 24, 2022 at 3:03 pm #20499maucastSupport ExpiredHi
thank you very much!!
Just to understand: the only change you made is to insert that snippet in the child theme’s function.php file?
February 25, 2022 at 9:45 am #20514Hi again,
There is one more small edit in the main theme and the code I have edited in the child-theme as you can see.
After editing this code, you have to save the permalink again.Let me know if you need to help and hope you will vote 5 stars for our team.
February 25, 2022 at 5:33 pm #20530maucastSupport ExpiredHi Billy
yes I saw the modification of the function.php file in the child theme.
But if you have also made a change in the main theme I would like to know, also because when there is an update of the theme, I risk losing this change and come back here to ask for assistance 🙂
Thanks
MauP.S. 5 stars for sure!
February 25, 2022 at 5:49 pm #20532Hi again,
We will update this in the main theme and make sure you don’t lose this customization when updating.
Don’t forget vote 5 stars for our team.
Thanks.
-
AuthorPosts
You must be logged in to reply to this topic.