Forums

[resolved] Post_content with formatting (4 posts)

  1. boon_
    Member
    Posted 9 months ago #

    Simple really...

    Is there a way to use <?php echo $post->post_content; ?> so that it mimics <?php the_content(); ?> in the way it retains all the WYSIWYG formatting information (specifically, <p> tags)?

    Thanks

  2. boon_
    Member
    Posted 9 months ago #

    Found it..

    <?php echo apply_filters('the_content', $post->post_content); ?>

  3. charlieperrins
    Member
    Posted 8 months ago #

    Thanks for posting your solution there boon_ , you've just saved me some time!

  4. art3k
    Member
    Posted 5 months ago #

    to me too... thanks!

Reply

You must log in to post.

About this Topic