Skip to content

Use get_the_content with complete formatting

The function get_the_content() returns the content of a post without all the magic formatting functions used by WordPress (like autop).

Use the following code to get the content of a post, with all the default filters applied

<?php
echo apply_filters('the_content', get_the_content());
?>

Categories: .

Comment Feed

No Responses (yet)



Some HTML is OK

or, reply to this post via trackback.