SlideShare a Scribd company logo
Advanced Custom
Fields
Beyond the Basics
Merrill M. Mayer
Kool Kat Web Designs
Seattle, WA USA
---------------------------------
koolkatwebdesigns.com
merrill.mayer@yahoo.com
---------------------------------
@koolkatweb
Overview
 Custom Queries
 Custom Previous and Next Post
Functionality
 Custom Dashboard Presentation
 Speaker Program:
http://bbrc.net/speakers/
Speaker Date Custom Field
Speaker Program Grid View
Query Parameters
post_type => rotary_speakers
posts_per_page => -1
orderby => meta_value
meta_key => speaker_date
More information on the grid can be found at
http://www.koolkatwebdesigns.com/wordcamp-seattle-
2014-speaker-program-custom-grid-and-advanced-
search/.
Speaker Program Single View
Filters for Next and Previous
Links
add_filter('get_previous_post_join', 'rotary_post_join');
add_filter('get_next_post_join', 'rotary_post_join');
add_filter('get_previous_post_where', 'rotary_prev_post_where');
add_filter('get_next_post_where', 'rotary_next_post_where');
add_filter('get_previous_post_sort', 'rotary_prev_post_sort');
add_filter('get_next_post_sort', 'rotary_next_post_sort');
add_filter('next_post_link', 'rotary_filter_next_post_link');
add_filter('previous_post_link', 'rotary_filter_previous_post_link');
Full implementation at:
http://www.koolkatwebdesigns.com/wordcamp-seattle-2014-custom-
prev-and-next-post-filters/
Speaker Dashboard
Summary
Dashboard Filters and
Actions
add_filter('manage_rotary_speakers_posts_columns' ,
'rotary_speakers_cpt_columns');
add_action(
'manage_rotary_speakers_posts_custom_column' ,
'rotary_custom_speaker_column_data', 10, 2 );
add_filter('manage_edit-rotary_speakers_sortable_columns',
'rotary_column_register_sortable');
add_filter( 'request', 'rotary_speaker_column_orderby' );
Full implementation at:
http://www.koolkatwebdesigns.com/wordcamp-seattle-2014-
speaker-program-dashboard-filters/
Thank You

More Related Content

Viewers also liked

Global Competency 2010
Global Competency 2010Global Competency 2010
Global Competency 2010
Toni Theisen
 
Fairbanks Branch Library
Fairbanks Branch LibraryFairbanks Branch Library
Fairbanks Branch Library
harriscountypubliclibrary
 
CÓPIAS TERMO DE AUDIÊNCIA MINISTERIAL
CÓPIAS TERMO DE AUDIÊNCIA MINISTERIALCÓPIAS TERMO DE AUDIÊNCIA MINISTERIAL
CÓPIAS TERMO DE AUDIÊNCIA MINISTERIAL
marconepedrotrajano
 
How User Support Can Increase Your Revenue
How User Support Can Increase Your RevenueHow User Support Can Increase Your Revenue
How User Support Can Increase Your Revenue
Ines van Essen - van Dijk
 
New products UV40 Gel
New products UV40 GelNew products UV40 Gel
New products UV40 Gel
HumiSeal
 
WordPress Security - Battening down the hatches
WordPress Security - Battening down the hatchesWordPress Security - Battening down the hatches
WordPress Security - Battening down the hatches
Brecht Ryckaert
 
8 Ways to Hack a WordPress website
8 Ways to Hack a WordPress website8 Ways to Hack a WordPress website
8 Ways to Hack a WordPress website
SiteGround.com
 
Advanced Web Services Hacking (AusCERT 06)
Advanced Web Services Hacking (AusCERT 06)Advanced Web Services Hacking (AusCERT 06)
Advanced Web Services Hacking (AusCERT 06)
Shreeraj Shah
 
Extensible Data Modeling
Extensible Data ModelingExtensible Data Modeling
Extensible Data Modeling
Karwin Software Solutions LLC
 
The Best Moodle Modules and Plugins
The Best Moodle Modules and PluginsThe Best Moodle Modules and Plugins
The Best Moodle Modules and Plugins
Rafael Scapin, Ph.D.
 
Trabajo y Energía en el Movimiento: Armónico Simple; Rotación Sistema Masa-Re...
Trabajo y Energía en el Movimiento: Armónico Simple; Rotación Sistema Masa-Re...Trabajo y Energía en el Movimiento: Armónico Simple; Rotación Sistema Masa-Re...
Trabajo y Energía en el Movimiento: Armónico Simple; Rotación Sistema Masa-Re...
Isaac Velayos
 
The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...
The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...
The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...
WordCamp Harare
 
Using Git with WordPress - Presented by Nigel Rodgers.
Using Git with WordPress - Presented by Nigel Rodgers.Using Git with WordPress - Presented by Nigel Rodgers.
Using Git with WordPress - Presented by Nigel Rodgers.
WordCamp Harare
 
Supporting Wordpress
Supporting WordpressSupporting Wordpress
Supporting Wordpress
masonjames
 
Reno-Tahoe WordCamp 2011 - WordPress End User Security - Dre Armeda
Reno-Tahoe WordCamp 2011 - WordPress End User Security - Dre ArmedaReno-Tahoe WordCamp 2011 - WordPress End User Security - Dre Armeda
Reno-Tahoe WordCamp 2011 - WordPress End User Security - Dre Armeda
Dre Armeda
 
Categories, Tags, Custom Post Types! Oh My!
Categories, Tags, Custom Post Types! Oh My!Categories, Tags, Custom Post Types! Oh My!
Categories, Tags, Custom Post Types! Oh My!
sprclldr
 
Wcto2012- after the install
Wcto2012- after the install Wcto2012- after the install
Wcto2012- after the install
Al Davis
 
Take the next step with git
Take the next step with gitTake the next step with git
Take the next step with git
Karin Taliga
 
WordCamp Milwaukee 2012 - Aaron Saray - Secure Wordpress Coding
WordCamp Milwaukee 2012 - Aaron Saray - Secure Wordpress CodingWordCamp Milwaukee 2012 - Aaron Saray - Secure Wordpress Coding
WordCamp Milwaukee 2012 - Aaron Saray - Secure Wordpress Coding
Aaron Saray
 
Truly Dynamic Sidebars for WordPress
Truly Dynamic Sidebars for WordPressTruly Dynamic Sidebars for WordPress
Truly Dynamic Sidebars for WordPress
ednailor
 

Viewers also liked (20)

Global Competency 2010
Global Competency 2010Global Competency 2010
Global Competency 2010
 
Fairbanks Branch Library
Fairbanks Branch LibraryFairbanks Branch Library
Fairbanks Branch Library
 
CÓPIAS TERMO DE AUDIÊNCIA MINISTERIAL
CÓPIAS TERMO DE AUDIÊNCIA MINISTERIALCÓPIAS TERMO DE AUDIÊNCIA MINISTERIAL
CÓPIAS TERMO DE AUDIÊNCIA MINISTERIAL
 
How User Support Can Increase Your Revenue
How User Support Can Increase Your RevenueHow User Support Can Increase Your Revenue
How User Support Can Increase Your Revenue
 
New products UV40 Gel
New products UV40 GelNew products UV40 Gel
New products UV40 Gel
 
WordPress Security - Battening down the hatches
WordPress Security - Battening down the hatchesWordPress Security - Battening down the hatches
WordPress Security - Battening down the hatches
 
8 Ways to Hack a WordPress website
8 Ways to Hack a WordPress website8 Ways to Hack a WordPress website
8 Ways to Hack a WordPress website
 
Advanced Web Services Hacking (AusCERT 06)
Advanced Web Services Hacking (AusCERT 06)Advanced Web Services Hacking (AusCERT 06)
Advanced Web Services Hacking (AusCERT 06)
 
Extensible Data Modeling
Extensible Data ModelingExtensible Data Modeling
Extensible Data Modeling
 
The Best Moodle Modules and Plugins
The Best Moodle Modules and PluginsThe Best Moodle Modules and Plugins
The Best Moodle Modules and Plugins
 
Trabajo y Energía en el Movimiento: Armónico Simple; Rotación Sistema Masa-Re...
Trabajo y Energía en el Movimiento: Armónico Simple; Rotación Sistema Masa-Re...Trabajo y Energía en el Movimiento: Armónico Simple; Rotación Sistema Masa-Re...
Trabajo y Energía en el Movimiento: Armónico Simple; Rotación Sistema Masa-Re...
 
The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...
The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...
The Power of Page Builder Plugins in Building a WordPress Site
 - Presented b...
 
Using Git with WordPress - Presented by Nigel Rodgers.
Using Git with WordPress - Presented by Nigel Rodgers.Using Git with WordPress - Presented by Nigel Rodgers.
Using Git with WordPress - Presented by Nigel Rodgers.
 
Supporting Wordpress
Supporting WordpressSupporting Wordpress
Supporting Wordpress
 
Reno-Tahoe WordCamp 2011 - WordPress End User Security - Dre Armeda
Reno-Tahoe WordCamp 2011 - WordPress End User Security - Dre ArmedaReno-Tahoe WordCamp 2011 - WordPress End User Security - Dre Armeda
Reno-Tahoe WordCamp 2011 - WordPress End User Security - Dre Armeda
 
Categories, Tags, Custom Post Types! Oh My!
Categories, Tags, Custom Post Types! Oh My!Categories, Tags, Custom Post Types! Oh My!
Categories, Tags, Custom Post Types! Oh My!
 
Wcto2012- after the install
Wcto2012- after the install Wcto2012- after the install
Wcto2012- after the install
 
Take the next step with git
Take the next step with gitTake the next step with git
Take the next step with git
 
WordCamp Milwaukee 2012 - Aaron Saray - Secure Wordpress Coding
WordCamp Milwaukee 2012 - Aaron Saray - Secure Wordpress CodingWordCamp Milwaukee 2012 - Aaron Saray - Secure Wordpress Coding
WordCamp Milwaukee 2012 - Aaron Saray - Secure Wordpress Coding
 
Truly Dynamic Sidebars for WordPress
Truly Dynamic Sidebars for WordPressTruly Dynamic Sidebars for WordPress
Truly Dynamic Sidebars for WordPress
 

Similar to Advanced Custom Fields - Beyond the Basics

Advanced Metadata w/ David Riecks
Advanced Metadata w/ David RiecksAdvanced Metadata w/ David Riecks
Advanced Metadata w/ David Riecks
globaledit®
 
Bar Camp Charleston 2010-11-13 Drupal - Which Modules to Use (Tom Sliker)
Bar Camp Charleston 2010-11-13  Drupal - Which Modules to Use (Tom Sliker)Bar Camp Charleston 2010-11-13  Drupal - Which Modules to Use (Tom Sliker)
Bar Camp Charleston 2010-11-13 Drupal - Which Modules to Use (Tom Sliker)
Tom Sliker
 
May 2023 CIAOPS Need to Know Webinar
May 2023 CIAOPS Need to Know WebinarMay 2023 CIAOPS Need to Know Webinar
May 2023 CIAOPS Need to Know Webinar
Robert Crane
 
Azure Nights August2017
Azure Nights August2017Azure Nights August2017
Azure Nights August2017
Michael Frank
 
Consuming REST Services in BizTalk 2010
Consuming REST Services in BizTalk 2010Consuming REST Services in BizTalk 2010
Consuming REST Services in BizTalk 2010
Daniel Toomey
 
Open Web Camp 2015: Shave that handlebar mustache
Open Web Camp 2015:  Shave that handlebar mustache Open Web Camp 2015:  Shave that handlebar mustache
Open Web Camp 2015: Shave that handlebar mustache
Benoit Marchant
 
IBM Connect 2016 - AD1548 - Building Responsive XPages Applications
IBM Connect 2016 - AD1548 - Building Responsive XPages ApplicationsIBM Connect 2016 - AD1548 - Building Responsive XPages Applications
IBM Connect 2016 - AD1548 - Building Responsive XPages Applications
beglee
 
March 2022 CIAOPS Need to Know Webinar
March 2022 CIAOPS Need to Know WebinarMarch 2022 CIAOPS Need to Know Webinar
March 2022 CIAOPS Need to Know Webinar
Robert Crane
 
Microsoft Graph Community call 1-2-18
Microsoft Graph Community call 1-2-18Microsoft Graph Community call 1-2-18
Microsoft Graph Community call 1-2-18
Microsoft 365 Developer
 
AWS User Group: Building Cloud Analytics Solution with AWS
AWS User Group: Building Cloud Analytics Solution with AWSAWS User Group: Building Cloud Analytics Solution with AWS
AWS User Group: Building Cloud Analytics Solution with AWS
Dmitry Anoshin
 
Ca site minder r12 professional study guide
Ca site minder r12 professional study guideCa site minder r12 professional study guide
Ca site minder r12 professional study guide
Nitish Nagar
 
DBM 380 HELP Redefined Education--dbm380help.com
DBM 380 HELP Redefined Education--dbm380help.comDBM 380 HELP Redefined Education--dbm380help.com
DBM 380 HELP Redefined Education--dbm380help.com
GVlaxmi7
 
DBM 380 EDU Redefined Education--dbm380edu.com
DBM 380 EDU Redefined Education--dbm380edu.comDBM 380 EDU Redefined Education--dbm380edu.com
DBM 380 EDU Redefined Education--dbm380edu.com
claric202
 
Using Rails to Create an Enterprise App: A Real-Life Case Study
Using Rails to Create an Enterprise App: A Real-Life Case StudyUsing Rails to Create an Enterprise App: A Real-Life Case Study
Using Rails to Create an Enterprise App: A Real-Life Case Study
David Keener
 
BikramSamaddar
BikramSamaddarBikramSamaddar
BikramSamaddar
Bikram Samaddar
 
DBM 380 EDU Become Exceptional--dbm380edu.com
DBM 380 EDU Become Exceptional--dbm380edu.comDBM 380 EDU Become Exceptional--dbm380edu.com
DBM 380 EDU Become Exceptional--dbm380edu.com
claric113
 
DBM 380 EDU Achievement Education--dbm380edu.com
DBM 380 EDU Achievement Education--dbm380edu.comDBM 380 EDU Achievement Education--dbm380edu.com
DBM 380 EDU Achievement Education--dbm380edu.com
claric163
 
DBM 380 EDU Education Counseling--dbm380edu.com
DBM 380 EDU Education Counseling--dbm380edu.comDBM 380 EDU Education Counseling--dbm380edu.com
DBM 380 EDU Education Counseling--dbm380edu.com
claric63
 
Cairo meetup low code best practices
Cairo meetup low code best practicesCairo meetup low code best practices
Cairo meetup low code best practices
Ahmed Keshk
 
UK Power BI Summit twitter social media wottabyte
UK Power BI Summit twitter social media wottabyteUK Power BI Summit twitter social media wottabyte
UK Power BI Summit twitter social media wottabyte
David Moss
 

Similar to Advanced Custom Fields - Beyond the Basics (20)

Advanced Metadata w/ David Riecks
Advanced Metadata w/ David RiecksAdvanced Metadata w/ David Riecks
Advanced Metadata w/ David Riecks
 
Bar Camp Charleston 2010-11-13 Drupal - Which Modules to Use (Tom Sliker)
Bar Camp Charleston 2010-11-13  Drupal - Which Modules to Use (Tom Sliker)Bar Camp Charleston 2010-11-13  Drupal - Which Modules to Use (Tom Sliker)
Bar Camp Charleston 2010-11-13 Drupal - Which Modules to Use (Tom Sliker)
 
May 2023 CIAOPS Need to Know Webinar
May 2023 CIAOPS Need to Know WebinarMay 2023 CIAOPS Need to Know Webinar
May 2023 CIAOPS Need to Know Webinar
 
Azure Nights August2017
Azure Nights August2017Azure Nights August2017
Azure Nights August2017
 
Consuming REST Services in BizTalk 2010
Consuming REST Services in BizTalk 2010Consuming REST Services in BizTalk 2010
Consuming REST Services in BizTalk 2010
 
Open Web Camp 2015: Shave that handlebar mustache
Open Web Camp 2015:  Shave that handlebar mustache Open Web Camp 2015:  Shave that handlebar mustache
Open Web Camp 2015: Shave that handlebar mustache
 
IBM Connect 2016 - AD1548 - Building Responsive XPages Applications
IBM Connect 2016 - AD1548 - Building Responsive XPages ApplicationsIBM Connect 2016 - AD1548 - Building Responsive XPages Applications
IBM Connect 2016 - AD1548 - Building Responsive XPages Applications
 
March 2022 CIAOPS Need to Know Webinar
March 2022 CIAOPS Need to Know WebinarMarch 2022 CIAOPS Need to Know Webinar
March 2022 CIAOPS Need to Know Webinar
 
Microsoft Graph Community call 1-2-18
Microsoft Graph Community call 1-2-18Microsoft Graph Community call 1-2-18
Microsoft Graph Community call 1-2-18
 
AWS User Group: Building Cloud Analytics Solution with AWS
AWS User Group: Building Cloud Analytics Solution with AWSAWS User Group: Building Cloud Analytics Solution with AWS
AWS User Group: Building Cloud Analytics Solution with AWS
 
Ca site minder r12 professional study guide
Ca site minder r12 professional study guideCa site minder r12 professional study guide
Ca site minder r12 professional study guide
 
DBM 380 HELP Redefined Education--dbm380help.com
DBM 380 HELP Redefined Education--dbm380help.comDBM 380 HELP Redefined Education--dbm380help.com
DBM 380 HELP Redefined Education--dbm380help.com
 
DBM 380 EDU Redefined Education--dbm380edu.com
DBM 380 EDU Redefined Education--dbm380edu.comDBM 380 EDU Redefined Education--dbm380edu.com
DBM 380 EDU Redefined Education--dbm380edu.com
 
Using Rails to Create an Enterprise App: A Real-Life Case Study
Using Rails to Create an Enterprise App: A Real-Life Case StudyUsing Rails to Create an Enterprise App: A Real-Life Case Study
Using Rails to Create an Enterprise App: A Real-Life Case Study
 
BikramSamaddar
BikramSamaddarBikramSamaddar
BikramSamaddar
 
DBM 380 EDU Become Exceptional--dbm380edu.com
DBM 380 EDU Become Exceptional--dbm380edu.comDBM 380 EDU Become Exceptional--dbm380edu.com
DBM 380 EDU Become Exceptional--dbm380edu.com
 
DBM 380 EDU Achievement Education--dbm380edu.com
DBM 380 EDU Achievement Education--dbm380edu.comDBM 380 EDU Achievement Education--dbm380edu.com
DBM 380 EDU Achievement Education--dbm380edu.com
 
DBM 380 EDU Education Counseling--dbm380edu.com
DBM 380 EDU Education Counseling--dbm380edu.comDBM 380 EDU Education Counseling--dbm380edu.com
DBM 380 EDU Education Counseling--dbm380edu.com
 
Cairo meetup low code best practices
Cairo meetup low code best practicesCairo meetup low code best practices
Cairo meetup low code best practices
 
UK Power BI Summit twitter social media wottabyte
UK Power BI Summit twitter social media wottabyteUK Power BI Summit twitter social media wottabyte
UK Power BI Summit twitter social media wottabyte
 

Recently uploaded

Top 50 Telephone Conversation Sample Examples For IT Industries.pdf
Top 50 Telephone Conversation Sample Examples For IT Industries.pdfTop 50 Telephone Conversation Sample Examples For IT Industries.pdf
Top 50 Telephone Conversation Sample Examples For IT Industries.pdf
Krishna L
 
Incident Identification Approach and Managment
Incident Identification Approach and ManagmentIncident Identification Approach and Managment
Incident Identification Approach and Managment
Gaali1
 
How Salesforce Development in the UK is Driving Digital Transformation
How Salesforce Development in the UK is Driving Digital TransformationHow Salesforce Development in the UK is Driving Digital Transformation
How Salesforce Development in the UK is Driving Digital Transformation
Sweet Potato Tec
 
Portugal Dreamin 24 - How to easily use an API with Flows
Portugal Dreamin 24  - How to easily use an API with FlowsPortugal Dreamin 24  - How to easily use an API with Flows
Portugal Dreamin 24 - How to easily use an API with Flows
Thierry TROUIN ☁
 
Use of Ontologies in Chemical Kinetic Database CHEMCONNECT
Use of Ontologies in Chemical Kinetic Database CHEMCONNECTUse of Ontologies in Chemical Kinetic Database CHEMCONNECT
Use of Ontologies in Chemical Kinetic Database CHEMCONNECT
Edward Blurock
 
Kolkata @Girls @Call WhatsApp Numbers 🫦0000XX0000🫦 List For Friendship Girls ...
Kolkata @Girls @Call WhatsApp Numbers 🫦0000XX0000🫦 List For Friendship Girls ...Kolkata @Girls @Call WhatsApp Numbers 🫦0000XX0000🫦 List For Friendship Girls ...
Kolkata @Girls @Call WhatsApp Numbers 🫦0000XX0000🫦 List For Friendship Girls ...
paridubey2024#G05
 
How-to-Diagnose-Hard-Drives-by-DFL-DDP-2024.pdf
How-to-Diagnose-Hard-Drives-by-DFL-DDP-2024.pdfHow-to-Diagnose-Hard-Drives-by-DFL-DDP-2024.pdf
How-to-Diagnose-Hard-Drives-by-DFL-DDP-2024.pdf
Dolphin Data Lab
 
SisAi World - Software is AI - Providing AI as Software - Protecting the Inte...
SisAi World - Software is AI - Providing AI as Software - Protecting the Inte...SisAi World - Software is AI - Providing AI as Software - Protecting the Inte...
SisAi World - Software is AI - Providing AI as Software - Protecting the Inte...
QingjieDu1
 
AWS Networking Basic , tanapat limsaiprom
AWS Networking Basic , tanapat limsaipromAWS Networking Basic , tanapat limsaiprom
AWS Networking Basic , tanapat limsaiprom
ธนาพัฒน์ ลิ้มสายพรหม
 
Network Security version1.0 - Module 3.pptx
Network Security version1.0 - Module 3.pptxNetwork Security version1.0 - Module 3.pptx
Network Security version1.0 - Module 3.pptx
Infotainmentforall
 
Chennai Girls Call ServiCe X00XXX00XX Tanisha Best High Class Chennai Available
Chennai Girls Call ServiCe X00XXX00XX Tanisha Best High Class Chennai AvailableChennai Girls Call ServiCe X00XXX00XX Tanisha Best High Class Chennai Available
Chennai Girls Call ServiCe X00XXX00XX Tanisha Best High Class Chennai Available
shamrisumri
 
Dewanstudio Project Portfolio 2023 show case
Dewanstudio Project Portfolio 2023 show caseDewanstudio Project Portfolio 2023 show case
Dewanstudio Project Portfolio 2023 show case
DEWANSTUDIO.COM
 
IPv6 Deployment Planning and Security Considerations
IPv6 Deployment Planning and Security ConsiderationsIPv6 Deployment Planning and Security Considerations
IPv6 Deployment Planning and Security Considerations
Bangladesh Network Operators Group
 
DASH, presented by Elly Tawhai at PacNOG 33
DASH, presented by Elly Tawhai at PacNOG 33DASH, presented by Elly Tawhai at PacNOG 33
DASH, presented by Elly Tawhai at PacNOG 33
APNIC
 
Software Defined Networking, Concepts and Practical Implementations
Software Defined Networking, Concepts and Practical ImplementationsSoftware Defined Networking, Concepts and Practical Implementations
Software Defined Networking, Concepts and Practical Implementations
Bangladesh Network Operators Group
 
Web development Platform Constraints.pptx
Web development Platform Constraints.pptxWeb development Platform Constraints.pptx
Web development Platform Constraints.pptx
ssuser2f6682
 
Why Your Business Needs a Professional Web Design Company UAE
Why Your Business Needs a Professional Web Design Company UAEWhy Your Business Needs a Professional Web Design Company UAE
Why Your Business Needs a Professional Web Design Company UAE
adelewhite125
 
Ontology for the semantic enhancement, database definition and management and...
Ontology for the semantic enhancement, database definition and management and...Ontology for the semantic enhancement, database definition and management and...
Ontology for the semantic enhancement, database definition and management and...
Edward Blurock
 
Lordsexch ID: An Ultimate Online Cricket ID Provider In India
Lordsexch ID: An Ultimate Online Cricket ID Provider In IndiaLordsexch ID: An Ultimate Online Cricket ID Provider In India
Lordsexch ID: An Ultimate Online Cricket ID Provider In India
exchangeid32
 
Build a Professional Resume using Canva , Tanapat Limsaiprom
Build a Professional Resume using Canva , Tanapat LimsaipromBuild a Professional Resume using Canva , Tanapat Limsaiprom
Build a Professional Resume using Canva , Tanapat Limsaiprom
TanapatLimsaiprom1
 

Recently uploaded (20)

Top 50 Telephone Conversation Sample Examples For IT Industries.pdf
Top 50 Telephone Conversation Sample Examples For IT Industries.pdfTop 50 Telephone Conversation Sample Examples For IT Industries.pdf
Top 50 Telephone Conversation Sample Examples For IT Industries.pdf
 
Incident Identification Approach and Managment
Incident Identification Approach and ManagmentIncident Identification Approach and Managment
Incident Identification Approach and Managment
 
How Salesforce Development in the UK is Driving Digital Transformation
How Salesforce Development in the UK is Driving Digital TransformationHow Salesforce Development in the UK is Driving Digital Transformation
How Salesforce Development in the UK is Driving Digital Transformation
 
Portugal Dreamin 24 - How to easily use an API with Flows
Portugal Dreamin 24  - How to easily use an API with FlowsPortugal Dreamin 24  - How to easily use an API with Flows
Portugal Dreamin 24 - How to easily use an API with Flows
 
Use of Ontologies in Chemical Kinetic Database CHEMCONNECT
Use of Ontologies in Chemical Kinetic Database CHEMCONNECTUse of Ontologies in Chemical Kinetic Database CHEMCONNECT
Use of Ontologies in Chemical Kinetic Database CHEMCONNECT
 
Kolkata @Girls @Call WhatsApp Numbers 🫦0000XX0000🫦 List For Friendship Girls ...
Kolkata @Girls @Call WhatsApp Numbers 🫦0000XX0000🫦 List For Friendship Girls ...Kolkata @Girls @Call WhatsApp Numbers 🫦0000XX0000🫦 List For Friendship Girls ...
Kolkata @Girls @Call WhatsApp Numbers 🫦0000XX0000🫦 List For Friendship Girls ...
 
How-to-Diagnose-Hard-Drives-by-DFL-DDP-2024.pdf
How-to-Diagnose-Hard-Drives-by-DFL-DDP-2024.pdfHow-to-Diagnose-Hard-Drives-by-DFL-DDP-2024.pdf
How-to-Diagnose-Hard-Drives-by-DFL-DDP-2024.pdf
 
SisAi World - Software is AI - Providing AI as Software - Protecting the Inte...
SisAi World - Software is AI - Providing AI as Software - Protecting the Inte...SisAi World - Software is AI - Providing AI as Software - Protecting the Inte...
SisAi World - Software is AI - Providing AI as Software - Protecting the Inte...
 
AWS Networking Basic , tanapat limsaiprom
AWS Networking Basic , tanapat limsaipromAWS Networking Basic , tanapat limsaiprom
AWS Networking Basic , tanapat limsaiprom
 
Network Security version1.0 - Module 3.pptx
Network Security version1.0 - Module 3.pptxNetwork Security version1.0 - Module 3.pptx
Network Security version1.0 - Module 3.pptx
 
Chennai Girls Call ServiCe X00XXX00XX Tanisha Best High Class Chennai Available
Chennai Girls Call ServiCe X00XXX00XX Tanisha Best High Class Chennai AvailableChennai Girls Call ServiCe X00XXX00XX Tanisha Best High Class Chennai Available
Chennai Girls Call ServiCe X00XXX00XX Tanisha Best High Class Chennai Available
 
Dewanstudio Project Portfolio 2023 show case
Dewanstudio Project Portfolio 2023 show caseDewanstudio Project Portfolio 2023 show case
Dewanstudio Project Portfolio 2023 show case
 
IPv6 Deployment Planning and Security Considerations
IPv6 Deployment Planning and Security ConsiderationsIPv6 Deployment Planning and Security Considerations
IPv6 Deployment Planning and Security Considerations
 
DASH, presented by Elly Tawhai at PacNOG 33
DASH, presented by Elly Tawhai at PacNOG 33DASH, presented by Elly Tawhai at PacNOG 33
DASH, presented by Elly Tawhai at PacNOG 33
 
Software Defined Networking, Concepts and Practical Implementations
Software Defined Networking, Concepts and Practical ImplementationsSoftware Defined Networking, Concepts and Practical Implementations
Software Defined Networking, Concepts and Practical Implementations
 
Web development Platform Constraints.pptx
Web development Platform Constraints.pptxWeb development Platform Constraints.pptx
Web development Platform Constraints.pptx
 
Why Your Business Needs a Professional Web Design Company UAE
Why Your Business Needs a Professional Web Design Company UAEWhy Your Business Needs a Professional Web Design Company UAE
Why Your Business Needs a Professional Web Design Company UAE
 
Ontology for the semantic enhancement, database definition and management and...
Ontology for the semantic enhancement, database definition and management and...Ontology for the semantic enhancement, database definition and management and...
Ontology for the semantic enhancement, database definition and management and...
 
Lordsexch ID: An Ultimate Online Cricket ID Provider In India
Lordsexch ID: An Ultimate Online Cricket ID Provider In IndiaLordsexch ID: An Ultimate Online Cricket ID Provider In India
Lordsexch ID: An Ultimate Online Cricket ID Provider In India
 
Build a Professional Resume using Canva , Tanapat Limsaiprom
Build a Professional Resume using Canva , Tanapat LimsaipromBuild a Professional Resume using Canva , Tanapat Limsaiprom
Build a Professional Resume using Canva , Tanapat Limsaiprom
 

Advanced Custom Fields - Beyond the Basics

  • 2. Merrill M. Mayer Kool Kat Web Designs Seattle, WA USA --------------------------------- koolkatwebdesigns.com merrill.mayer@yahoo.com --------------------------------- @koolkatweb
  • 3. Overview  Custom Queries  Custom Previous and Next Post Functionality  Custom Dashboard Presentation  Speaker Program: http://bbrc.net/speakers/
  • 6. Query Parameters post_type => rotary_speakers posts_per_page => -1 orderby => meta_value meta_key => speaker_date More information on the grid can be found at http://www.koolkatwebdesigns.com/wordcamp-seattle- 2014-speaker-program-custom-grid-and-advanced- search/.
  • 8. Filters for Next and Previous Links add_filter('get_previous_post_join', 'rotary_post_join'); add_filter('get_next_post_join', 'rotary_post_join'); add_filter('get_previous_post_where', 'rotary_prev_post_where'); add_filter('get_next_post_where', 'rotary_next_post_where'); add_filter('get_previous_post_sort', 'rotary_prev_post_sort'); add_filter('get_next_post_sort', 'rotary_next_post_sort'); add_filter('next_post_link', 'rotary_filter_next_post_link'); add_filter('previous_post_link', 'rotary_filter_previous_post_link'); Full implementation at: http://www.koolkatwebdesigns.com/wordcamp-seattle-2014-custom- prev-and-next-post-filters/
  • 10. Dashboard Filters and Actions add_filter('manage_rotary_speakers_posts_columns' , 'rotary_speakers_cpt_columns'); add_action( 'manage_rotary_speakers_posts_custom_column' , 'rotary_custom_speaker_column_data', 10, 2 ); add_filter('manage_edit-rotary_speakers_sortable_columns', 'rotary_column_register_sortable'); add_filter( 'request', 'rotary_speaker_column_orderby' ); Full implementation at: http://www.koolkatwebdesigns.com/wordcamp-seattle-2014- speaker-program-dashboard-filters/

Editor's Notes

  1. Welcome to Advanced Custom Fields – beyond the basics. Today we are going to cover a brief introduction of using Advanced Custom fields as part of a custom post type to implement a speaker program for the Bellevue Breakfast Rotary Club.
  2. First, a little about me. I am a freelance web developer, mostly working with WordPress. I enjoy working directly with designers to develop custom themes for clients.
  3. We will focus this presentation on the use of the speaker date field.
  4. In setting up a Speaker Program implementation, one item that gained a lot of importance was the speaker date – the date on which a particular speaker actually presented at the Bellevue Breakfast Rotary Club. The idea of the post date and handling scheduled posts was too complicated for the club which is why we chose to use a custom field. The Speaker date is defined as a datepicker field via the Advanced Custom Fields plugin. Once the we decided on using a custom date field, all kinds of issues arose. For example, how do we get the speaker posts and in what order, how do we show the next and previous speaker in the single post and what should be displayed in the dashboard.
  5. This is the list of speakers (current and previous). Notice that speakers are listed in descending speaker date order – not post date order.
  6. To achieve the correct order and to get the correct custom posts, we pass these arguments to WP_Query. The grid itself uses the jQuery Datatables plugin to display the results. The permalink is stored in a hidden column which allows us to navigate to the single Rotary Speakers post when a grid row is clicked.
  7. Clicking on a grid row brings up the single post for the speaker. Notice that the next and previous links have the next and previous speaker date.
  8. To get the next and previous to work using the speaker date, we must implement several filters for both the previous and next post links. These filters change the actual query used to process the previous and next links. So, what do these all do? Well, the custom fields are stored in the post meta table. This is different from the post date, which is in the posts table. So the JOIN filter is used to join the post table and post meta table together. (actually INNER JOIN matching columns in both the Posts and Posts Meta table) The join uses the post ID. The WHERE filter sets the criteria for the query as does any other WHERE clause. We actually use two of the same fields as the WP_Query shown earlier, and include the meta_key and meta value. The SORT filter overrides the order by clause allowing us to sort by the meta_value column in ASCENDING sequence for the “NEXT” llink and DESCENDING sequence for the “PREVIOUS” link. Remember that in this case, our meta_value is the speaker_date that we defined with Advanced Custom Fields.
  9. The dashboard shows our custom fields. The “Cols” field is in from a plugin but the remaining fields are part of the Rotary speakers custom post type and are all defined using advanced custom fields. The default order is by speaker date, descending but may be sorted by first and last name, too.
  10. First, notice that all of the “manage” filters and actions include the specific custom post name, in this case, “rotary_speakers”. manage_${post_type}_posts_columns allows the addition and removal of dashboard columns for the specific post type. As an example, we remove the post date and author. manage_${post_type}_posts_column retrieves the data for a specific column. For example, the data for the speaker’s first or last name manage_edit-${post_type}_sortable_columns sets which columns are sortable. Here, the speaker date, speaker’s first name and speaker’s last name can be sorted. Filtering the request is tricky as you don’t want to impact other areas of the dashboard. Be sure to check for your custom post type and/or order by variable. I have seen reference to using pre_get_posts for this instead of the request filter but have not yet tried that out.