I have created a front-end form to allow users to create 'teacher profiles' to be displayed as single posts and an archive.
I want to auto-create the post title by concatenating values from three custom fields on the form and having them auto-populate the title field, which will then create the custom slug I need - it might for example be teacher/02/michael/london with teacher being the post type.
1) I need one field to be an auto-number field increasing by one for each post created - I can't see how to do this so haven't added it yet.
The second field is the teacher name, the third is their location, both of which the user will complete.
2) How can I combine these three values (assuming the auto-number field is possible) to create the post title during the posting process and thus create the matching slug?
At the moment, while I have a php snippet in functions to set the post title once the post has been submitted, the posts all have slugs like /cred-auto-draft-48f057167b095ecf5d004cbc79629a96 as I assume the title is set after posting and thus after the slug is set. These are user-created posts so being able to manually change slugs in admin is of no help here.
In the past I have used Formidable forms and ACF together to do the same thing and it's easy - you just cut and paste a little snippet of js FF provide into a field on their post form. However, while I'm sure it's equally simple with tools, I can't see how to do the above.
I tried looking at various shortcodes and other documentation but while some may be useful (I can't tell) there aren't any copyable examples to adapt and use, meaning they're wasted on a non-coder.
Sorry, the site isn't live so no links, as I'm still trying to decide whether to use tools or go back to what I know.
Thanks for whatever help you can give.