Skip Navigation

[Resolved] Update the post slug when submitting Form to edit post

This support ticket is created 4 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 1 reply, has 2 voices.

Last updated by Christian Cox 4 years, 4 months ago.

Assisted by: Christian Cox.

Author
Posts
#1393855
1393813-img1_slug.png
1393813-img1_slug_2.png

What must I do to adjust the Link to that of the Lead_name as well
(say a user updates name, i would like the slug to also update) -see attatched images

#1393873

It's a bit complex, because normally changing the title of a custom post does not automatically update the post slug in WordPress. Since the Form to edit the post slug is displayed on a URL that contains that original slug, you would also have to redirect to the new URL when the Form is submitted. Otherwise the page would show a 404 error if the slug had been modified. It is possible with some custom code using the Forms API, as described in another ticket here: https://toolset.com/forums/topic/submitting-editing-content-with-cred-and-changing-post-title-and-slug/
There are code samples you can use as templates to set up a similar system.

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.