[wp-hackers] Format post content outside of loop

Brian Layman Brian at TheCodeCave.com
Thu Apr 20 17:12:52 GMT 2006


David House said it all when he uttered:
>$content = apply_filters('the_content', $post_to_email->post_content);

Yep.  Look at functions-formatting.php's function wp_trim_excerpt for an
example of how to include a cleaned version of the post in your email...



More information about the wp-hackers mailing list