Tuesday, 11 August 2015

How to display custom page title content and thumbnail in WordPress

<?php
              // Start the loop.
while ( have_posts() ) : the_post(); ?>

 <?php echo the_post_thumbnail('full'); ?>

 <h1> <?php echo the_title(); ?>  </h1>

 <p>  <?php echo the_content(); ?>  </p>


<?php endwhile ?>

No comments:

Post a Comment

Alternative content