Skip Navigation

[Resolved] Change Post URL on cred

This support ticket is created 6 years, 2 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 1 reply, has 2 voices.

Last updated by Minesh 6 years, 2 months ago.

Assisted by: Minesh.

Author
Posts
#612016

Tell us what you are trying to do?
I neet to create a cred field to change Post URL

Is there any documentation that you are following?
No

Is there a similar example that we can see?No

What is the link to your site?
hidden link

#612062

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Yes - its possible to change the post URL using CRED edit form, You need CRED edit form to edit existing entry.

You can add CRED generic field to your CRED form and use it as per your requirement.

For example:

[cred_generic_field field='post_slug' type='textfield' class='' urlparam='']
{
"required":0,
"validate_format":0,
"default":"[get_slug]"
}
[/cred_generic_field]

More info:
=> https://toolset.com/documentation/user-guides/inserting-generic-fields-into-forms/

And later, use CRED hook, CRED save data to update the slug for your post/page:
=> https://toolset.com/documentation/programmer-reference/cred-api/

Here is complete solution I shared:
=> https://toolset.com/forums/topic/cred_field-for-editing-page-slug-from-the-front-end-with-cred-form/#post-592047

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