Hello Summer Sale!
Exclusive season-opening discount on TheGem theme.
Limited time offer.

Okay
  Public Ticket #1201947
/potfolios/ in the URL
Closed

Comments

  • bradley146 started the conversation

    Is there a way to change the '/portfolios/' part of the URL. E.g. for a housing development company can you have it as '/developments/'. 

    Thankyou

  •  7,280
    Oliver replied

    HI!

    In the functions php of the child theme add next code:

    function thegem_portfolio_post_type_change() {    
    $args = get_post_type_object("thegem_pf_item");    
    $args->rewrite["slug"] = "developments";    
    register_post_type($args->name, $args);
    }
    add_action('init', 'thegem_portfolio_post_type_change', 10); 

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • bradley146 replied

    Hi, 

    I entered this code but they are still working on the '/portfolio/portfolio-name' URL rather than on the '/developments/portfolio-name' - it comes up with 'page not found' error when clicked on. 

    Any idea why? 

    Thanks

  •  7,280
    Oliver replied

    Pls. provide the wp-admin access.

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  •   bradley146 replied privately
  •  7,280
    Oliver replied

    pls. add this code

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • bradley146 replied

    I have added the code - however it is still not working

  •  7,280
    Oliver replied

    Pls. check now.

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • bradley146 replied

    It is all working now - Thankyou!

  •   Oliver replied privately