Your account expired support, please renew to get your support.

Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #20370
    maucast
    Support 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!

    #20394
    #20403
    maucast
    Support Expired

    Hi

    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)

    #20444

    Please send admin web account for me, I will check and try to help you.

    #20451
    maucast
    Support Expired
    This reply has been marked as private.
    #20496
    #20499
    maucast
    Support Expired

    Hi

    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?

    #20514

    Hi 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.

    #20530
    maucast
    Support Expired

    Hi 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
    Mau

    P.S. 5 stars for sure!

    #20532

    Hi 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.

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.