Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // The page ID I am using is 2, you should substitute whatever is
- // appropriate in your case
- $page = get_post(2);
- // WordPress performs all sorts of magic behind the scenes - like
- // automatically adding paragraphs.
- //
- // This can be replicated as follows ... but please note some
- // plugins/themes won't play nicely if you do this
- $content = apply_filters('the_content', $page->post_content);
- // Last but not least we'll print the content to the screen
- echo $content
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement