Skip Navigation

[Resolved] updating a custom post permalink/slug on a post form

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 4 replies, has 2 voices.

Last updated by Nigel 1 year ago.

Assisted by: Nigel.

Author
Posts
#2660099
Toolset_Object Edit Template_Permalink.JPG

Tell us what you are trying to do?
I have a shortcode provided by MINESH, to duplicate a custom post called Objet :
- the duplication ix based on a php function also provided by Minesh, and works perfectly
- BUT, the permalink of the new Objet, created by the duplication, is set to : copie-slug-of-the-source-objet
- then, when changing the Title of this new Objet to for example new-objet, the permalink/slug stays the same : copie-slug-of-the-source-objet.

Is there a similar example that we can see?
- see the attached screen shot of the Objet editing form template

#2660137

The php function is in the Snippets plugin admin page (not in the function.php) :
- it s based on the Yoast Duplicate Post plugin, which is installed

Thank you for your help.

Francesco De Grandi

#2661025

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Francesco

First, can I caution you not to post sensitive information in the forum unless we have set up a private reply for you to do so. I have edited your question to remove the site credentials you shared.

Regarding your question, can you clarify the workflow?

It looks like you are using a custom shortcode to add a duplicate post link to the front end, and then you have a function that redirects to the copied post once it is duplicated.

You ask "when changing the Title of this new Objet...".

When and where does the title get changed?

#2661135

Hi Nigel,

Thank you for your prompt response.

I am sorry, but I opened this ticket because I was not shure that reopening a previous ticket handled by Minesh actually worked, because it was after the deadline...

Fortunately, the reopening did work, and Minesh di find a solution for this issue of updating the custom type slug when submitting it's editing form.
So, this ticket can be closed.

Thank you again.
Best regards,

Francesco De Grandi

#2661143

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

That's good to know, thanks.