[wp-hackers] Format post content outside of loop

Paul Menard codehooligans at codehooligans.com
Thu Apr 20 18:05:27 GMT 2006


On Apr 20, 2006, at 12:12 PM, Brian Layman wrote:

> 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...
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>

Very cool. Thanks all. And sorry for the mis-quote on the function.  
Correct 'the_content();


More information about the wp-hackers mailing list