Comments dani_sanchez21 started the conversationMay 14, 2017 at 3:26amHello, I would like to change the permalink structure for portfolio items.As an example:This is how it is: domain/portfolios/portfolio-nameI would like it to be like this: domain/custom-name/portfolio-nameThank you 7,122Oliver repliedMay 15, 2017 at 10:57amHI!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"] = "NEW_SLUG"; 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, Oliverdani_sanchez21 repliedMay 17, 2017 at 5:18amExcellent,Thank you 7,122Oliver repliedMay 17, 2017 at 9:46amYou are welcome!Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. Regards, OliverBaptisteJesu repliedMay 31, 2017 at 12:41pmHi, I'm having the same question and your code works, only the new url /portfolio/my-portfolio gives me a 404 error (and the /portfolios/... urls are still working).I've also created a /portfolio single page so I can have :/portfolio - all my projects/portfolio/my-portfolio - Single projectAny idea where it might come from ?Thanks ! 7,122Oliver repliedMay 31, 2017 at 12:44pmHI!pls. provide the wp-admin access in the new private ticket. Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. Regards, Oliver Sign in to reply ...
Hello, I would like to change the permalink structure for portfolio items.
As an example:
This is how it is: domain/portfolios/portfolio-name
I would like it to be like this: domain/custom-name/portfolio-name
Thank you
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
Excellent,
Thank you
You are welcome!
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'm having the same question and your code works, only the new url /portfolio/my-portfolio gives me a 404 error (and the /portfolios/... urls are still working).
I've also created a /portfolio single page so I can have :
/portfolio - all my projects
/portfolio/my-portfolio - Single project
Any idea where it might come from ?
Thanks !
HI!
pls. provide the wp-admin access in the new private ticket.
Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list.
Regards, Oliver