Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End How to put code in Loop? Reply To: How to put code in Loop?

#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; ?>