How to get the content of any post with the help of id







Here is a wordpress function we can use to get the content of any post with the help of their id.

<?php echo get_post_field('post_content',$post_id);?>

Here you can read it with full explanation.
codex.wordpress.org/Function_Reference

Share With Friends

Also Read   How to sort woocommerce attributes in 3 simple steps?

Speak Your Mind

*

Time limit is exhausted. Please reload CAPTCHA.