Forms, REST and languages
Make a contact form that saves to the sitePro

- Make a field group
Contactwith a Textname, an Emailemailand a Text areamessage. - In your template, or as a shortcode in a page:
ugly_form( array(
'groups' => array( 'group_contact' ),
'post_type' => 'message',
'status' => 'pending',
'who' => 'anyone',
'submit' => 'Send',
'notify' => 'hello@example.com',
) );[ugly_fields_form groups="group_contact" post_type="message" who="anyone"]A visitor cannot publish: their post waits for review. It has its own token, a honeypot, a minimum time and limits of tries. Fields that cannot go in a form (an image, a file, rich text) are left out, and the person who builds the site sees a notice that lists them. See Forms.
Did this article answer your question?
Thank you. It helps us make the documentation better. Need more help?