Support » Fixing WordPress » Stripping Tags :(

  • Resolved mattblank

    (@mattblank)


    Hi!

    To include a page’s content into my template, I’m using the below code:

    <?php
    $post_id = 5220;
    $queried_post = get_post($post_id);
    ?>
    <div class="aboutimg"><?php echo get_the_post_thumbnail($queried_post->ID, '') ?></div>
    <div class="about">
    <?php echo $queried_post->post_content; ?>
    </div>

    This work excepts it seems to strip out all my <p> tags. So if I have two paragraphs on the page, it merges it into one.

    Any suggestions?
    Many thanks!
    Matt

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Stripping Tags :(’ is closed to new replies.