Row Index
ACF


<div class="accordion" id="accordion-<?php echo get_row_index(); ?>">

ACF Select Conditional
ACF


<?php if( get_field('color') == 'red' ) {?>
// Do something.
<?php };?>

ACF Image Size (Array)
ACF


<?php $image = get_sub_field('image'); ?>
<img src="<?php echo $image['sizes']['square']; ?>" />

ACF True/False
ACF


<?php if ( get_field( 'field_name' ) ): ?>

This is displayed when the field_name is TRUE or has a value.

<?php else: ?>

This is displayed when the field is FALSE, NULL or the field does not exist.

<?php endif;  ?>

ACF Options
ACF


if( function_exists('acf_add_options_page') ) {
acf_add_options_page(array(
'page_title' => 'Options',
'menu_title' => 'Theme Options',
'menu_slug' => 'theme-options',
'capability' => 'edit_posts',
'redirect' => false
));
}

ACF Relationship
ACF


<?php $posts = get_field('relationship_field_name'); if( $posts ): ?>
<ul>
<?php foreach( $posts as $post): setup_postdata($post); ?>
<li>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</li>
<?php endforeach; ?>
</ul>
<?php wp_reset_postdata(); endif; ?>

ACF Repeater (Basic)
ACF

<?php if( have_rows('repeater_field_name') ): while ( have_rows('repeater_field_name') ) : the_row();?>
<?php the_sub_field('sub_field_name');?>
<?php endwhile; else : endif; ?>