From the course: WordPress: Advanced Custom Fields
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Defining your block in the admin - WordPress Tutorial
From the course: WordPress: Advanced Custom Fields
Defining your block in the admin
- [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.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.