<?php while(has_sub_field("downloads")): ?>
<?php if(get_row_layout() == "pulps"):?>
<?php the_sub_field("document_category"); ?>
<?php the_sub_field("cat_thumb"); ?>
<?php the_sub_field("cat_summ"); ?>
<?php if( get_sub_field('document_information') ): ?>
<?php while( has_sub_field('document_information') ):?>
<?php the_sub_field('doc_file'); ?>
<?php the_sub_field('doc_title'); ?>
<?php the_sub_field('doc_summ'); ?>
<?php the_sub_field('doc_type'); ?>
<?php endwhile; ?>
<?php endif; ?>
<?php elseif(get_row_layout() == "comics"):?>
<div>Hello Comics</div>
<?php elseif(get_row_layout() == "magazines"):?>
<div>Hello Magazines</div>
<?php elseif(get_row_layout() == "toys"):?>
<div>Hello Toys</div>
<?php endif; ?>
<?php endwhile; ?>
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.