Created
June 23, 2020 17:59
-
-
Save AbhishekGhosh/d3e9dc2060bac477a9f8bc0a79e20c70 to your computer and use it in GitHub Desktop.
WordPress show post content example with page ID 5670
This file contains 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
<?php | |
$id = 5670; | |
$p = get_page($id); | |
echo apply_filters('the_content', $p->post_content); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment