Listing Categories
if( $attribute['listing'] == 'featured') $featured_list = true; else $featured_list = false; ?>
if(have_rows('list_of_categories','option')):?>
while(have_rows('list_of_categories','option')): the_row();?>
if($featured_list)
if( !empty( get_sub_field( 'featured_list' ) ) )
$display = true;
else
$display = false;
else
$display = true;
?>
if($display): ?>
endif ?>
if($featured_list): ?>
endif ?>
endif?>
$image = get_sub_field('featured_image');
$size = 'full';
?>
endif ?>
endwhile?>
if(!$featured_list): ?>
the_sub_field('category_name') ?>
Learn More
All Categories
View All
