wordpress get page content to display on template page

gets the page content and displays it on a template, this must use the post loop as shown in the code.

PHP


<?php
// Show the entry content on a Wordpress Template Page
while ( have_posts() ) : the_post(); ?>
    <div class="entry-content-page">
        <?php the_content(); ?>
    </div>
<?php
endwhile; //reset the page loop
wp_reset_query(); //reset the page query
?>
..

Page Views

This page has been viewed 293 times.

Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.

❤👩‍💻🕹

Random Quote
therock Somewhere along this crazy road I learned (often times the hard way) the most important things I can do is be authentic, trust my gut, be the hardest worker in the room, celebrate the mistakes, be a grateful man and always remember that it's nice to be important, but it's more important to be nice.
The Rock