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.

p.s. I increased my AdSense revenue by 200% using AI 🤖. Read my Ezoic review to find out how.

Leave a reply

Your email address will not be published.