Display Single Page’s Content in WP

Despite looking around on the web it is really hard to find just the basic query syntax for adding a single wordpress’ page content to your own page.  I guess it is so simple that when anyone figures it out they don’t post about it.

Here it is:

<?php query_posts('page_id=11');  /* assign page id */ ?>
<?php if(have_posts) : the_post(); /* start the loop */ ?>
<?php the_content(); /* prints the content */ ?>
<?php endif; /* end the loop */  ?>

REMEMBER THIS IS FOR PAGEs and NOT POSTS

 

Leave a Reply