Like the blog? Get the book »

Daily archives: Thursday, July 2, 2009

Archive page 1 of 1
Putting the_content() into a PHP Variable

Putting the_content() into a PHP Variable

There are probably a couple ways to do this, but here is a really easy one:

ob_start();
the_content();
$content = ob_get_clean();
© 2009–2024 Digging Into WordPress Powered by WordPress Monzilla Media shapeSpace