[Resolved] Create CPT Title from CRED form (two fields)
This thread is resolved. Here is a description of the problem and solution.
Problem:
How to create custom or dynamic title with for post created using CRED form Solution:
CRED API offers you hook "cred_save_data" to accoplish this goal. Also, custom fields values stored in postmeta table. You can get the custom field value using get_post_meta() function.
I have been on this for hours and cant seem to get the syntax right. I've read the forums and it hasn't helped.
I have a custom post type called "LittleChamps"
I have a CRED form "ID=87"
This form creates data for this CPT. There are two custom fields within this CPT called "first-name" and "surname".
Can you please give me the correct syntax for saving the TITLE of the CPT with the combination of "first-name" and "surname".
Example:
"jones-tom"
Could you please share link of the page where you've added CRED form.
Let me debug on your install to fix this issue.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.