Last active
August 29, 2015 14:15
-
-
Save kier0/558aae3cd882666a0aaf to your computer and use it in GitHub Desktop.
Wordpress - Get Page or Post TITLE + CONTENT by ID (change 6 to id #)
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
| <h1><?php echo get_the_title(6); ?> </h1> | |
| <?php | |
| $id=6; | |
| $post = get_post($id); | |
| $content = apply_filters('the_content', $post->post_content); | |
| echo $content; | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment