Home › Forums › Back End › How to put code in Loop? › Reply To: How to put code in Loop?
April 11, 2016 at 1:53 am
#240422
Atelierbram
Participant
Probably in a single.php
template (“single” stands for “single posts”), somewhere in this while
statement. More info about the default WordPress loop
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
// stuff
<?php if ( function_exists('get_featured_img') ) get_featured_img(); ?>
// stuff
<?php endwhile; ?>