Created
April 21, 2015 16:24
-
-
Save chimeno/d3a20e047f5808a6bd7d to your computer and use it in GitHub Desktop.
Show content from a page in another - wordpress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $the_query = new WP_Query( 'page_id=305' ); | |
| while ( $the_query->have_posts() ) : | |
| $the_query->the_post(); | |
| the_content(); | |
| endwhile; | |
| wp_reset_postdata(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment