SlideShare a Scribd company logo
Build a Better Editing
Experience with Advanced
Custom Fields
Jeseph Meyers IT’S LIKE JOSEPH - WITH AN “E”
@jesephm // #WCBuf
“WordPress is not user friendly.”
- Me, right now
@jesephm // #WCBuf
@jesephm // #WCBuf
HTML is intimidating!
@jesephm // #WCBuf
Build a Better Editing Experience with Advanced Custom Fields
What about page builders!?!
- You, right now
Heh, I’m not
a logo
@jesephm // #WCBuf
Build a Better Editing Experience with Advanced Custom Fields
Still kinda confusing, isn’t it?
@jesephm // #WCBuf
@jesephm // #WCBuf
This will drive you
and/or your clients
crazy!
@jesephm // #WCBuf
Source: https://developer.wordpress.org/reference/functions/add_editor_style/
HTML is intimidating!
@jesephm // #WCBuf
https://www.advancedcustomfields.com/
@jesephm // #WCBuf
Should I use ACF?
 Working knowledge of HTML, PHP (if/while/WordPress
templates) and CSS
 Create sites for yourself or others
 Extend the functionality of WP Core (editing experience)
@jesephm // #WCBuf
Do I need the pro (paid) version?
Free
 Field groups and content grouping
 Simplify page/post edit screens
 Enhanced editing experience
 Media, embeds and pickers
Pro
 Flexible Content
 Repeater Fields
 Tabbed layouts
 Theme Options
@jesephm // #WCBuf
ACF – The Basics
 Fields – Any content that will be added to a page template via ACF. Called
using “get_field” or “the_field”
 Field-Group – A group of content that is displayed as section. This will
generally be a group of components added to create a page layout. Fields
within a group are referenced using “get_sub_field” or “the_sub_field”.
@jesephm // #WCBuf
Build a Better Editing Experience with Advanced Custom Fields
@jesephm // #WCBuf
Input values into your theme
@jesephm // #WCBuf
<h2><?php the_field('text'); ?></h2>
<div><?php the_field('text_edit'); ?></div>
<?php
$image = get_field('image');
if( !empty($image) ): ?> <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" />
<?php endif; ?>
@jesephm // #WCBuf
Build a Better Editing Experience with Advanced Custom Fields
Build a Better Editing Experience with Advanced Custom Fields
Build a Better Editing Experience with Advanced Custom Fields
Repeater Fields
(pro feature)
// check if the repeater field has rows of data
if( have_rows('repeater_field_name') ):
// loop through the rows of data
while ( have_rows('repeater_field_name') ) : the_row();
// display a sub field value
the_sub_field('sub_field_name');
endwhile;
else :
// no rows found
endif;
@jesephm // #WCBuf
Now make 30 pages!
One template
3 versions
rapid deployment
via ACF
Past Event
Future Event
Live Event @jesephm // #WCBuf
Default Values
Rapid duplication of page types
@jesephm // #WCBuf
Flexible Content
(pro feature)
// check if the flexible content field has rows of data
if( have_rows('flexible_content_field_name') ):
// loop through the rows of data
while ( have_rows('flexible_content_field_name') ) : the_row();
if( get_row_layout() == 'paragraph' ):
the_sub_field('text');
elseif( get_row_layout() == 'download' ):
$file = get_sub_field('file');
endif;
endwhile;
else :
// no layouts found
endif;
@jesephm // #WCBuf
Build a Better Editing Experience with Advanced Custom Fields
Applications for ACF
 Restaurant franchise
 Tour schedule (I can walk you through this one)
 Real estate listings
 Staff/team page
 Home pages without widgets!
 Service pages
@jesephm // #WCBuf
Build a Better Editing Experience with Advanced Custom Fields
Thank you!
@jesephm
jeseph@qcmny.com
ACF custom user avatars: http://bit.ly/ACF_avatars
Use ACF to create/edit posts: STAY SEATED

More Related Content

PPTX
Build a Better Editing Experience with Advanced Custom Fields - #WCTO16
PDF
WordPress as the Backbone(.js)
PPTX
Put a little Backbone in your WordPress
KEY
Advanced WordPress Development Environments
PPTX
Vagrant WordCamp Hamilton
PPTX
WordCamp Ann Arbor 2015 Introduction to Backbone + WP REST API
PDF
Streamlining Your Applications with Web Frameworks
PDF
Build a Better Editing Experience with Advanced Custom Fields - #WCTO16
WordPress as the Backbone(.js)
Put a little Backbone in your WordPress
Advanced WordPress Development Environments
Vagrant WordCamp Hamilton
WordCamp Ann Arbor 2015 Introduction to Backbone + WP REST API
Streamlining Your Applications with Web Frameworks

What's hot (20)

PPTX
HTML5 Web Workers-unleashed
PDF
Speak The Web: The HTML5 Experiments
PDF
Fronted From Scratch - Supercharge Magento page speed
PPTX
WP-CLI - A Good Friend of Developer
PDF
Front End Development - Beyond Javascript (Robin Cannon)
PDF
A modern front end development workflow for Magnolia at Atlassian
PDF
Asynchronous Personalization at Groupon - JSConf 2011
PDF
Developers, Be a Bada$$ with WP-CLI
PPTX
WordPress Structure and Best Practices
PPTX
JavaScript performance patterns
PDF
Workshop 21: React Router
PPTX
11. move in Symfony 4
PDF
SocketStream
PDF
Cucumber Ru09 Web
PDF
Dress Your WordPress with Child Themes
PPTX
Bower power
PDF
WordCamp San Francisco 2011: Transients, Caching, and the Complexities of Mul...
PPTX
9. lower in Symfony 4
DOCX
PDF
Outside-in Development with Cucumber and Rspec
HTML5 Web Workers-unleashed
Speak The Web: The HTML5 Experiments
Fronted From Scratch - Supercharge Magento page speed
WP-CLI - A Good Friend of Developer
Front End Development - Beyond Javascript (Robin Cannon)
A modern front end development workflow for Magnolia at Atlassian
Asynchronous Personalization at Groupon - JSConf 2011
Developers, Be a Bada$$ with WP-CLI
WordPress Structure and Best Practices
JavaScript performance patterns
Workshop 21: React Router
11. move in Symfony 4
SocketStream
Cucumber Ru09 Web
Dress Your WordPress with Child Themes
Bower power
WordCamp San Francisco 2011: Transients, Caching, and the Complexities of Mul...
9. lower in Symfony 4
Outside-in Development with Cucumber and Rspec
Ad

Similar to Build a Better Editing Experience with Advanced Custom Fields (20)

PDF
Seven deadly theming sins
PDF
[Bristol WordPress] Supercharging WordPress Development
PPTX
10 Things Every Plugin Developer Should Know (WordCamp Atlanta 2013)
PDF
HTML 5 - Overview
PDF
Wordless, stop writing WordPress themes like it's 1998
PDF
Umleitung: a tiny mochiweb/CouchDB app
PDF
You're Doing it Wrong - WordCamp Orlando
KEY
Doing Things the WordPress Way
PDF
Bullet: The Functional PHP Micro-Framework
PPTX
Childthemes ottawa-word camp-1919
PDF
JavaScript & AJAX in WordPress
PPTX
Using WordPress as your application stack
PDF
Mastering WordPress Vol.1
PDF
Laying the proper foundation for plugin and theme development
PDF
HTML5, the new buzzword
PDF
Web Development for UX Designers
PDF
Survey of Front End Topics in Rails
KEY
It's a Mod World - A Practical Guide to Rocking Modernizr
PDF
WCLA12 JavaScript
PDF
IV - CSS architecture
Seven deadly theming sins
[Bristol WordPress] Supercharging WordPress Development
10 Things Every Plugin Developer Should Know (WordCamp Atlanta 2013)
HTML 5 - Overview
Wordless, stop writing WordPress themes like it's 1998
Umleitung: a tiny mochiweb/CouchDB app
You're Doing it Wrong - WordCamp Orlando
Doing Things the WordPress Way
Bullet: The Functional PHP Micro-Framework
Childthemes ottawa-word camp-1919
JavaScript & AJAX in WordPress
Using WordPress as your application stack
Mastering WordPress Vol.1
Laying the proper foundation for plugin and theme development
HTML5, the new buzzword
Web Development for UX Designers
Survey of Front End Topics in Rails
It's a Mod World - A Practical Guide to Rocking Modernizr
WCLA12 JavaScript
IV - CSS architecture
Ad

Recently uploaded (20)

PPTX
Media And Information Literacy for Grade 12
PPT
EGWHermeneuticsffgggggggggggggggggggggggggggggggg.ppt
PDF
Key Trends in Website Development 2025 | B3AITS - Bow & 3 Arrows IT Solutions
PDF
Urban Design Final Project-Context
PDF
The Advantages of Working With a Design-Build Studio
PDF
YOW2022-BNE-MinimalViableArchitecture.pdf
PPTX
YV PROFILE PROJECTS PROFILE PRES. DESIGN
PPT
pump pump is a mechanism that is used to transfer a liquid from one place to ...
PDF
Design Thinking - Module 1 - Introduction To Design Thinking - Dr. Rohan Dasg...
PDF
Quality Control Management for RMG, Level- 4, Certificate
PPTX
Wisp Textiles: Where Comfort Meets Everyday Style
PPTX
Fundamental Principles of Visual Graphic Design.pptx
PPTX
Special finishes, classification and types, explanation
PPTX
6- Architecture design complete (1).pptx
PDF
SEVA- Fashion designing-Presentation.pdf
PPTX
DOC-20250430-WA0014._20250714_235747_0000.pptx
PPTX
AC-Unit1.pptx CRYPTOGRAPHIC NNNNFOR ALL
PDF
Facade & Landscape Lighting Techniques and Trends.pptx.pdf
PDF
Urban Design Final Project-Site Analysis
PPTX
ANATOMY OF ANTERIOR CHAMBER ANGLE AND GONIOSCOPY.pptx
Media And Information Literacy for Grade 12
EGWHermeneuticsffgggggggggggggggggggggggggggggggg.ppt
Key Trends in Website Development 2025 | B3AITS - Bow & 3 Arrows IT Solutions
Urban Design Final Project-Context
The Advantages of Working With a Design-Build Studio
YOW2022-BNE-MinimalViableArchitecture.pdf
YV PROFILE PROJECTS PROFILE PRES. DESIGN
pump pump is a mechanism that is used to transfer a liquid from one place to ...
Design Thinking - Module 1 - Introduction To Design Thinking - Dr. Rohan Dasg...
Quality Control Management for RMG, Level- 4, Certificate
Wisp Textiles: Where Comfort Meets Everyday Style
Fundamental Principles of Visual Graphic Design.pptx
Special finishes, classification and types, explanation
6- Architecture design complete (1).pptx
SEVA- Fashion designing-Presentation.pdf
DOC-20250430-WA0014._20250714_235747_0000.pptx
AC-Unit1.pptx CRYPTOGRAPHIC NNNNFOR ALL
Facade & Landscape Lighting Techniques and Trends.pptx.pdf
Urban Design Final Project-Site Analysis
ANATOMY OF ANTERIOR CHAMBER ANGLE AND GONIOSCOPY.pptx

Build a Better Editing Experience with Advanced Custom Fields

  • 1. Build a Better Editing Experience with Advanced Custom Fields
  • 2. Jeseph Meyers IT’S LIKE JOSEPH - WITH AN “E” @jesephm // #WCBuf
  • 3. “WordPress is not user friendly.” - Me, right now
  • 8. What about page builders!?! - You, right now
  • 9. Heh, I’m not a logo @jesephm // #WCBuf
  • 11. Still kinda confusing, isn’t it? @jesephm // #WCBuf
  • 12. @jesephm // #WCBuf This will drive you and/or your clients crazy!
  • 13. @jesephm // #WCBuf Source: https://developer.wordpress.org/reference/functions/add_editor_style/
  • 17. Should I use ACF?  Working knowledge of HTML, PHP (if/while/WordPress templates) and CSS  Create sites for yourself or others  Extend the functionality of WP Core (editing experience) @jesephm // #WCBuf
  • 18. Do I need the pro (paid) version? Free  Field groups and content grouping  Simplify page/post edit screens  Enhanced editing experience  Media, embeds and pickers Pro  Flexible Content  Repeater Fields  Tabbed layouts  Theme Options @jesephm // #WCBuf
  • 19. ACF – The Basics  Fields – Any content that will be added to a page template via ACF. Called using “get_field” or “the_field”  Field-Group – A group of content that is displayed as section. This will generally be a group of components added to create a page layout. Fields within a group are referenced using “get_sub_field” or “the_sub_field”. @jesephm // #WCBuf
  • 22. Input values into your theme @jesephm // #WCBuf <h2><?php the_field('text'); ?></h2> <div><?php the_field('text_edit'); ?></div> <?php $image = get_field('image'); if( !empty($image) ): ?> <img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" /> <?php endif; ?>
  • 27. Repeater Fields (pro feature) // check if the repeater field has rows of data if( have_rows('repeater_field_name') ): // loop through the rows of data while ( have_rows('repeater_field_name') ) : the_row(); // display a sub field value the_sub_field('sub_field_name'); endwhile; else : // no rows found endif; @jesephm // #WCBuf
  • 28. Now make 30 pages!
  • 29. One template 3 versions rapid deployment via ACF Past Event Future Event Live Event @jesephm // #WCBuf
  • 30. Default Values Rapid duplication of page types @jesephm // #WCBuf
  • 31. Flexible Content (pro feature) // check if the flexible content field has rows of data if( have_rows('flexible_content_field_name') ): // loop through the rows of data while ( have_rows('flexible_content_field_name') ) : the_row(); if( get_row_layout() == 'paragraph' ): the_sub_field('text'); elseif( get_row_layout() == 'download' ): $file = get_sub_field('file'); endif; endwhile; else : // no layouts found endif; @jesephm // #WCBuf
  • 33. Applications for ACF  Restaurant franchise  Tour schedule (I can walk you through this one)  Real estate listings  Staff/team page  Home pages without widgets!  Service pages @jesephm // #WCBuf
  • 35. Thank you! @jesephm jeseph@qcmny.com ACF custom user avatars: http://bit.ly/ACF_avatars Use ACF to create/edit posts: STAY SEATED