How do I display the text inside the WP editor for a page with a custom template?

I was able to fix my problem. In order to access the content I used —

<?php /* Start the Loop */ ?>
<?php while(have_posts()) : the_post(); ?>
<?php the_content();?>
<?php endwhile; ?>

By adding that snippet of code directly into my template page I was able to easily add the content from the visual editor. I had attempted to use “the_content()” but this was nonfunctional because I was not within the loop.

The loop is an integral part of WordPress and more information on the Loop can be found at http://codex.wordpress.org/The_Loop .

Leave a Comment