jcadima
3/10/2015 - 2:04 PM

How to get content from pages

How to get content from pages

<section id="blue">
	<div class="container">
	<?php  
	$query =  new WP_Query('pagename=about');
	if ($query->have_posts() ) {
		while($query->have_posts() ){
			$query->the_post(); 		
			the_content();
		}
	}
	wp_reset_postdata();
	?>
</div>
</section>