Skip Navigation

[Resolved] Auto populate and increment title field.

This support ticket is created 3 years, 5 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.

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
- 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 3 years, 5 months ago.

Assisted by: Minesh.

Author
Posts
#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
Supporter

Languages: English (English )

Timezone: 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