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.
use
get_the_content()
to get the contents of the postSee
get_the_content()
function – http://codex.wordpress.org/Function_Reference/get_the_contentNote the section there on applying filters
apply_filters('the_content',...
Or… just the global var $post