Home » Wordpress » WordPress Function to Get Post Content by Post ID
Wordpress

WordPress Function to Get Post Content by Post ID

wordpress-increase-character-length-excerpt

In WordPress we can get the content of the post ID by custom WordPress function. For that add the following code in the template file and function in the theme folder.

1. Add the following code in the template file where the post content to be displayed.

here $postID is the iD of the post, of which the content to be displayed.

2. Add the following function definition in the function.php file in the theme folder.

this function will return the content of the corresponding post id.

About the author

Vipin

Hi, i am Vipin, a programmer working in Dubai, UAE. I love blogging, and so started TechRounder for sharing my findings and other digital informations with others too. Please feel free to share your feedback with me in the comment section below or you can email me at vipin@techrounder.com.

1 Comment

Click here to post a comment

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

Get latest updates
in your inbox

Subscribe to TechRounder mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.