Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Advanced Custom Fields - Beyond the Basics

70,748 views

Published on

Slides from my 2014 WordCamp Seattle and WordCamp Vancouver presentations.

  • Be the first to comment

Advanced Custom Fields - Beyond the Basics

  1. 1. Advanced Custom Fields Beyond the Basics
  2. 2. Merrill M. Mayer Kool Kat Web Designs Seattle, WA USA --------------------------------- koolkatwebdesigns.com merrill.mayer@yahoo.com --------------------------------- @koolkatweb
  3. 3. Overview  Custom Queries  Custom Previous and Next Post Functionality  Custom Dashboard Presentation  Speaker Program: http://bbrc.net/speakers/
  4. 4. Speaker Date Custom Field
  5. 5. Speaker Program Grid View
  6. 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/.
  7. 7. Speaker Program Single View
  8. 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/
  9. 9. Speaker Dashboard Summary
  10. 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/
  11. 11. Thank You

×