SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.
SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.
Successfully reported this slideshow.
Activate your 30 day free trial to unlock unlimited reading.
1.
bit.ly/wpsydacf
@leocaseiro
ACF
ADVANCED CUSTOM FIELDS FOR WP - 101
http://bit.ly/wpsydacf
By /Leo Caseiro @leocaseiro
2.
WHO AM I
Brazilian - Web Developer at - -IDM Renet IPMG
Translator: /WordPress PT-BR Tuts+
Community: /BR WP Forum WordPress Stackoverflow
WordPress Plugin Developer
27.
FRONTEND - RELATIONAL CHILD (ACTOR)
Show parents related
<ul>
<?php $movies = get_posts(...); //See Previous Slide
foreach( $movies as $post): // var must be called $post (IMPORTANT)
setup_postdata( $post ); ?>
<li>
<a href="<?php the_permalink(); ?>">
<?php the_title(); ?>
<?php the_post_thumbnail(); ?>
</a>
</li>
<?php wp_reset_postdata(); // IMPORTANT - reset the $post object
// so the rest of the page works correctly
endforeach;
?>
</ul>
http://www.advancedcustomfields.com/resources/tutorials/querying-relationship-fields/
28.
WHY ACF?
Doesn't create MySQL table
User Interface
900,000+
WP Way
Documentation
Support
similar Plugins at http://comparewp.org/
30.
ACF PRO - EXTRAS
Local JSON
Fields in Comments, Widget, Users
Validation PHP + AJAX
acf_form()
31.
BEYOND THIS TALK
WordPress Plugins: Advanced Custom Fields
Jared Novack: Advanced Advanced Custom Fields
Using Advanced Custom Fields within a WordPress Custom Theme
Elliot Condon talks - WP Melbourne:
Story of Advanced Custom Field - May 2013
ACF 5 Walk-through - May 2014
32.
ADVANCED USE
Actions and Filters
Creating a new field type
Extensions
ACF to WP-API Plugin
Local JSON
Syncronized JSON
http://www.advancedcustomfields.com/resources/