Wordpress PHP code to pull information from page onto another

<?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(); ?>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.