One of the more powerful data features of ACF is the ability to allow for front-end submissions. In this example, users would be able to submit their own profiles! Discover exactly how to code this up by creating a page template that pulls in your custom fields using the acf_form function.
- [Instructor] Advanced custom fields … let's us take user interaction to the next level, … by creating front end submission forms. … This allows users to fill out a form and have it submitted … as a post or any post type in WordPress. … You can also choose to have it publish automatically … or have it set as a draft for review. … Let's take a look at how to do that. … First we'll need to create a page template for our form. … We can do that by copying from … two files in our parent theme. … The first is page.php … we're going to copy that, … and then paste it into our child theme. … We'll rename that to page-new-profile. … Then we'll delete the entire comment block … starting on line two. … We'll replace that with a single line comment … called Template Name: User Profile. … This will tell WordPress to use this file … as a page template. … Next, we'll add a new line right above … our get_header function call. … And that's going to be acf_form_head. … This will tell advanced custom fields …
- What are custom fields?
- Creating field groups
- Adding content to fields
- Displaying fields on a child theme
- Creating and displaying repeater fields
- Creating a submission form
- Creating a Gutenberg block with PHP only
- Writing rules for field display
- Organizing fields
- Exporting field groups
Skill Level Advanced
1. Getting Started with ACF
2. Creating Field Groups with ACF
Field types overview3m 48s
3. Displaying Your Fields
4. Working with Data in ACF
5. Creating a Gutenberg Block
6. Cleaning Up the Admin
Next steps1m 13s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.