Im using the following code to pull the about page into the homepage
<?php // query for the about page $your_query = new WP_Query( 'pagename=about' ); // "loop" through query (even though it's just one page) while ( $your_query->have_posts() ) : $your_query->the_post(); the_content(); endwhile; // reset post data (important!) wp_reset_postdata(); ?>
But its not showing the page title in this, just the content. Is there way to pull the page title in as well as the content?