SlideShare a Scribd company logo
1 of 11
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 2010Toni Theisen
 
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 MINISTERIALmarconepedrotrajano
 
New products UV40 Gel
New products UV40 GelNew products UV40 Gel
New products UV40 GelHumiSeal
 
WordPress Security - Battening down the hatches
WordPress Security - Battening down the hatchesWordPress Security - Battening down the hatches
WordPress Security - Battening down the hatchesBrecht 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 websiteSiteGround.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
 
The Best Moodle Modules and Plugins
The Best Moodle Modules and PluginsThe Best Moodle Modules and Plugins
The Best Moodle Modules and PluginsRafael 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 Wordpressmasonjames
 
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 ArmedaDre 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 gitKarin 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 CodingAaron Saray
 
Truly Dynamic Sidebars for WordPress
Truly Dynamic Sidebars for WordPressTruly Dynamic Sidebars for WordPress
Truly Dynamic Sidebars for WordPressednailor
 

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 Riecksglobaledit®
 
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 WebinarRobert Crane
 
Azure Nights August2017
Azure Nights August2017Azure Nights August2017
Azure Nights August2017Michael Frank
 
Consuming REST Services in BizTalk 2010
Consuming REST Services in BizTalk 2010Consuming REST Services in BizTalk 2010
Consuming REST Services in BizTalk 2010Daniel 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 Applicationsbeglee
 
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 WebinarRobert Crane
 
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 AWSDmitry 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 guideNitish 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.comGVlaxmi7
 
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.comclaric202
 
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 StudyDavid Keener
 
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.comclaric113
 
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.comclaric163
 
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.comclaric63
 
Cairo meetup low code best practices
Cairo meetup low code best practicesCairo meetup low code best practices
Cairo meetup low code best practicesAhmed 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 wottabyteDavid 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

Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Excelmac1
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一Fs
 
SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is prediSCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predieusebiomeyer
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa494f574xmv
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationLinaWolf1
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Sonam Pathan
 
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书rnrncn29
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书zdzoqco
 
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书rnrncn29
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作ys8omjxb
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITMgdsc13
 
NSX-T and Service Interfaces presentation
NSX-T and Service Interfaces presentationNSX-T and Service Interfaces presentation
NSX-T and Service Interfaces presentationMarko4394
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一z xss
 
Contact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New DelhiContact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New Delhimiss dipika
 
Elevate Your Business with Our IT Expertise in New Orleans
Elevate Your Business with Our IT Expertise in New OrleansElevate Your Business with Our IT Expertise in New Orleans
Elevate Your Business with Our IT Expertise in New Orleanscorenetworkseo
 
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)Christopher H Felton
 
Magic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMagic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMartaLoveguard
 
Top 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxTop 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxDyna Gilbert
 

Recently uploaded (20)

Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...Blepharitis inflammation of eyelid symptoms cause everything included along w...
Blepharitis inflammation of eyelid symptoms cause everything included along w...
 
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
定制(Lincoln毕业证书)新西兰林肯大学毕业证成绩单原版一比一
 
SCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is prediSCM Symposium PPT Format Customer loyalty is predi
SCM Symposium PPT Format Customer loyalty is predi
 
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in  Rk Puram 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Rk Puram 🔝 9953056974 🔝 Delhi escort Service
 
Film cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasaFilm cover research (1).pptxsdasdasdasdasdasa
Film cover research (1).pptxsdasdasdasdasdasa
 
PHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 DocumentationPHP-based rendering of TYPO3 Documentation
PHP-based rendering of TYPO3 Documentation
 
Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170Call Girls Near The Suryaa Hotel New Delhi 9873777170
Call Girls Near The Suryaa Hotel New Delhi 9873777170
 
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
『澳洲文凭』买拉筹伯大学毕业证书成绩单办理澳洲LTU文凭学位证书
 
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
办理多伦多大学毕业证成绩单|购买加拿大UTSG文凭证书
 
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
『澳洲文凭』买詹姆士库克大学毕业证书成绩单办理澳洲JCU文凭学位证书
 
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
Potsdam FH学位证,波茨坦应用技术大学毕业证书1:1制作
 
Git and Github workshop GDSC MLRITM
Git and Github  workshop GDSC MLRITMGit and Github  workshop GDSC MLRITM
Git and Github workshop GDSC MLRITM
 
NSX-T and Service Interfaces presentation
NSX-T and Service Interfaces presentationNSX-T and Service Interfaces presentation
NSX-T and Service Interfaces presentation
 
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
办理(UofR毕业证书)罗切斯特大学毕业证成绩单原版一比一
 
Contact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New DelhiContact Rya Baby for Call Girls New Delhi
Contact Rya Baby for Call Girls New Delhi
 
Elevate Your Business with Our IT Expertise in New Orleans
Elevate Your Business with Our IT Expertise in New OrleansElevate Your Business with Our IT Expertise in New Orleans
Elevate Your Business with Our IT Expertise in New Orleans
 
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
young call girls in Uttam Nagar🔝 9953056974 🔝 Delhi escort Service
 
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
A Good Girl's Guide to Murder (A Good Girl's Guide to Murder, #1)
 
Magic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptxMagic exist by Marta Loveguard - presentation.pptx
Magic exist by Marta Loveguard - presentation.pptx
 
Top 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptxTop 10 Interactive Website Design Trends in 2024.pptx
Top 10 Interactive Website Design Trends in 2024.pptx
 

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.