Home › Forums › Back End › How to put code in Loop? › Reply To: How to put code in Loop?
April 12, 2016 at 1:38 am
#240466
Atelierbram
Participant
I read through your initial question again, and are now thinking you don’t really need this plugin for what you want.
In your functions.php
you should have a line like this: add_theme_support( 'post-thumbnails' );
Then in your single.php
one can do something like:
<div class="entry-content entry-single entry-text entry-blog">
<?php
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail();
}
?>
<?php the_content(); ?>
</div><!-- .entry-content -->
?>
See also: Featured Images & Post Thumbnails
If unsure, you can also always look into a barebones theme like Underscores