Now that your block is registered in code, you can define the Field Group that you want to show up in the block. In this video, define your Fun Facts field group, add two simple fields, and then define the appropriate location rules to get your fields to show up in your new block.
- [Instructor] With our block defined, … now it's time to create the field group. … Let's go to our Custom Fields Field Group area, … and select Add New. … We'll give this field group a title … of "Fun Facts", … and we'll add two fields to it. … A title, and a description. … They'll both be of the field type text. … Once we add those fields we can close them up, … and then we'll go to the location area. … For the first select box, … instead of Post Type, we'll scroll down … to the bottom under the Forms section, … and we'll select the Block option. … You'll notice that the third select … box then changes. … And the block that we just defined … is showing up. … So we'll go ahead and select that, … and then we'll publish our new field group. … With our block defined both in code … and in the WordPress admin, … we now need to tell WordPress how to display it. … …
- 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.