Php/WordPress: Storing post content into variable?

When using the the_post() loop, how do I fetch the post data?
I can’t retrieve the post content data with the_content() because it automatically ‘prints’ the content on the screen.

I need it to be stored in a value so I can manipulate it, I need to display only a small portion of the content for the headlines.

Related posts

Leave a Reply

3 comments