WordPress: Get content by id?

Last updated on

How to get WordPress posts or page content by id

echo apply_filters('the_content', get_post_field('post_content', $post_id));

Let me know if this helped. Follow me on Twitter, Facebook and YouTube, or 🍊 buy me a smoothie.

Leave a reply

Your email address will not be published. Required fields are marked *