Skip Navigation

[Resuelto] Change Post URL on cred

This support ticket is created hace 6 años, 10 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Minesh hace 6 años, 10 meses.

Asistido por: Minesh.

Autor
Mensajes
#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?
enlace oculto

#612062

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: 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