acf advanced custom fields versions code example
Example 1: custom fields wordpress
/* Wordpress for custom field -------
create template file like home.php and add this code */
<?php echo get_field('name');?>
Example 2: advance custon feilds
the_field('sub_heading');
$image = get_field('hero_image');
if( have_rows('todo') ):
while ( have_rows('todo') ) : the_row();
the_sub_field('item');
endwhile;
else :
endif;