Advanced Custom Fields(ACF) + Page Builder at WordPress meetup Stockholm 2016-04-14
Advanced Custom Fields - WordPress North East
30
WordPress: Advanced Custom Fields @PeacockCarter
-
Upload
richard-carter -
Category
Design
-
view
72 -
download
3
Transcript of Advanced Custom Fields - WordPress North East
Using a field in a template<?php if( get_field('sub_heading') ): ?>
<h2>
<?php the_field('sub_heading'); ?>
</h2>
<?php endif; ?>
Using the repeater field in a template<?php
if( have_rows('repeater_field_name') ):
while ( have_rows('repeater_field_name') ) : the_row();
the_sub_field('sub_field_name');
endwhile;
else :
// no rows found
endif;
?>