daanial
11/16/2013 - 12:46 PM

Loop for a specific page

Loop for a specific page

<?php $the_query = new WP_Query( 'pagename=contact' );
//loop
while ( $the_query->have_posts() ) : $the_query->the_post();

endwhile; wp_reset_postdata(); ?>