version of advanced custom fields. The personal version($20) is for one website, the PRO version is for unlimited sites. Plugin advanced custom fields PRO ($100). • Plugin lets you create custom fields, as well as repeaters, flexible content, gallery, etc. • We’re going to talk about defining your own webpage content layout using flexible content. http://www.advancedcustomfields.com/ • Can create layouts that will allow users to enter just about any kind of content like text, video, galleries, maps and layouts.
into a variety of layouts. Demo with the following content layouts: • Hero with a background image and optional CTA button (uses conditional logic) • Content with 1, 2 or 3 columns • Content with 2 columns, one text, one image • Image with caption • Gallery • FAQ’s (repeater)
of type flexible content • We can assign content to appear on a page, post or CPT, so when we edit our homepage, the layout will appear • Can import/export code • Can show or hide items
• Add new layout called Hero • Add 5 fields ◦ Hero image ◦ Hero text ◦ Display CTA button(this is a conditional field so user can turn this off or on) ◦ Hero button URL ◦ Hero button text There are 5 more layouts that we’ ve created.
hero content We use get_sub_field() to get the field values. Create HTML structure for our layout. Set background image Display field values Can use the_sub_field() to display fields.
code on ACF website • Videos show how to create layout similar to my demo • Google search will take you to some good posts on how to create layouts Norm Euker - http://www.njedesign.com Demo: http://njedesign.com/demo/acf/