Saltar navegación

[Resuelto] Auto populate and increment title field.

This support ticket is created hace 4 años, 1 mes. 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)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Minesh hace 4 años, 1 mes.

Asistido por: Minesh.

Autor
Mensajes
#2064003

I have a CPT called Newsletters. Is it possible to auto-populate the (standard WordPress) title and URL of the post and then also add an increment. So for example the first three posts would be:

Newsletter-1
Newsletter-2
Newsletter-3

On so on

Thanks!

#2064025

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I would like to know when you want to perform the auto increment, when adding post from admin or using Toolset form?

If you want to set auto increment post when adding the post from admin, you will require to use the default WordPress hook "save_post":

Please check the following related ticket:
=> https://toolset.com/forums/topic/disable-cpt-auto-numbering-when-editing-post/

There are other ways around, please check the following:
=> https://wordpress.stackexchange.com/questions/295630/how-to-auto-increment-post-title-post-slug-field