Comments bradley146 started the conversationJune 10, 2017 at 1:37pmIs 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,122Oliver repliedJune 12, 2017 at 7:03amHI! 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, Oliverbradley146 repliedJune 12, 2017 at 8:29amHi, 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,122Oliver repliedJune 12, 2017 at 8:30amPls. 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,122Oliver repliedJune 12, 2017 at 10:06ampls. add this codePlease note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. Regards, Oliverbradley146 repliedJune 12, 2017 at 10:15amI have added the code - however it is still not working 7,122Oliver repliedJune 12, 2017 at 10:18amPls. check now.Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. Regards, Oliverbradley146 repliedJune 12, 2017 at 10:26amIt is all working now - Thankyou! Oliver replied privately Sign in to reply ...
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
HI!
In the functions php of the child theme add next code:
Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list.
Regards, Oliver
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
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
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
I have added the code - however it is still not working
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
It is all working now - Thankyou!