Skip Navigation

[Closed] Auto Draft problem

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 11 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 11 years, 9 months ago.

Assisted by: Luo Yang.

Author
Posts
#15653

Hi, I am creating a system for clients to fill in a form and don't want to use the default Title Field that appears on wordpress posts. I can switch it off OK, but the field is left containing AUTO-DRAFT which keeps appearing here and there (such as on the list of customized posts). Can I force wordpress to autofill the title field with one of my Type fields (such as surname)?

Thanks in advance....

#15830

Dear Richard,

You can add these lines to the functions.php in the theme, for example:

add_action( 'save_post', 'my_save_postdata');
function my_save_postdata ( $post_id )
{
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE )
{
...
}
}
More help: http://codex.wordpress.org/Plugin_API/Action_Reference/save_post

The topic ‘[Closed] Auto Draft problem’ is closed to new replies.