The Advanced Custom Fields plugin for WordPress gives developers amazing capabilities, but it does have some limitations. Learn about uses for ACF and ACF Pro at the April 2015 East Bay WordPress Meetup.
7. What Is ACF?
• Intuitive UI for creating and managing
custom fields
• Free & Pro versions
• 20 field types
• Uses the_field(), get_field(),
the_sub_field(), and
get_sub_field() to retrieve field
content
• Shortcode: [acf
field="{$field_name}"]
http://www.advancedcustomfields.com/pro
8. Fields in Free Version
• Checkbox
• Color Picker
• Date Picker
• Google Map
• Image
• oEmbed
• Page Link
• Post Object
• Relationship
• Select
• Tab
• Taxonomy
• Text
• Textarea
• True/False
• Wysiwig Editor
9. Additional Fields in ACF Pro
The Repeater Field
The repeater field allows you to create a set of sub fields which can
be repeated again and again.
The Gallery Field
The gallery field provides a simple and intuitive interface for
managing a collection of images.
The Flexible Content Field
The flexible content field is a complete content layout manager.
Options Pages
All data saved on an options page is global and can be displayed on
any page.
10. How Much Does ACF Pro Cost?
One-time cost: $25 Personal, $100 Developer—Australian Dollars!
12. Select Field Group Location
You can choose to show your field groups
for pages, page templates, post types,
taxonomies, options pages, and widgets.
13. Set Field Group Options
This is handy if you want to hide the page/post
content editor when you display your fields.
19. Code for the Page Template
To see the code used to create this page
template in the Genesis Sample theme, go
to
http://acfdemo.rhymeswithsketch.com/co
de-for-condon-custom-page/
(There’s no way to show it in PowerPoint.)
31. Code Your Template
Updated instructions include proper
enqueuing of flexslider.js
Details at
http://acfdemo.rhymeswithsketch.com/gal
lery-slider-page-template-code/
49. Layouts Don’t Style Themselves
You need to write CSS for things like
• Making section full-width
• Hero image stretch display
• Overlay for the hero image
• Positioning of hero text over image
• Color of hero text
• Width of Image & Text sections
59. Just a Few Caveats
• ACF does not replace custom post types,
but it works well with them.
• Retrieving field data is harder than
retrieving CPT content.
• Fields created by ACF are stored either
in the post_meta table or the
wp_options table.
• You can’t search on custom fields
60. About the Presenter
Sallie Goetsch
(rhymes with ‘sketch’)
Got online in 1985. Started
building websites in 1995.
Discovered WordPress in 2005.
Organizer of the East Bay
WordPress Meetup.
@salliegoetsch
salliegoetsch
http://wpfangirl.com
510-969-9947