This works for all the fields except the image field, the Single Line fields with multiple instances (Teaching Certificate and Music Schools Taught At), and the main content editor field(Teacher Profile). Is there something special I need to do to get these fields to save from the generic fields to the CPT?
Hello. Thank you for contacting the Toolset support.
Can you please share the problem URL where you added the form as well as admin access details and also tell me what generic field you want to connect with what actual custom field you created with the Toolset Types plugin.
*** 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 have set the next reply to private which means only you and I have access to it.
I think you were looking at the teacher edit form, not the add new teacher form, which is here: lien caché
And here is what I want to bind:
Generic field private-teacher-photo should be saved to private-teacher-photo.
Generic field profile-bio should be saved to the main content editor field.
Generic field teaching-certificate-1 should be saved to private-teacher-teaching-certifications ( A single line field with multiple instances) the first instance.
Generic field teaching-certificate-2 should be saved to private-teacher-teaching-certifications ( A single line field with multiple instances) the second instance.
Generic field music-school-taught-at-1 should be saved to private-teacher-music-schools-taught-at ( A single line field with multiple instances) the first instance.
Generic field music-school-taught-at-2 should be saved to private-teacher-music-schools-taught-at ( A single line field with multiple instances) the second instance.
For the Edit Teacher form, will I have to create another code snippet to save things?
Thanks! Everything worked except the photo field, there was no error message and the image did not get saved. But I asked chatgpt why this might be and incredibly it told me to just add "<input type="file" name="private-teacher-photo" />" to the image generic field and it now works. The below is for reference in case anyone else needs this.