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 ?>
// 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 ?>
Comments
Post a Comment