Title: Stripping  Tags :(
Last modified: August 21, 2016

---

# Stripping Tags :(

 *  Resolved [Matt Blank](https://wordpress.org/support/users/mattblank/)
 * (@mattblank)
 * [13 years ago](https://wordpress.org/support/topic/stripping-tags/)
 * 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)

 *  Thread Starter [Matt Blank](https://wordpress.org/support/users/mattblank/)
 * (@mattblank)
 * [13 years ago](https://wordpress.org/support/topic/stripping-tags/#post-3777388)
 * Can anyone help me with this please?
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years ago](https://wordpress.org/support/topic/stripping-tags/#post-3777389)
 * try
 *     ```
       <?php echo apply_filters( 'the_content', $queried_post->post_content ); ?>
       ```
   
 *  Thread Starter [Matt Blank](https://wordpress.org/support/users/mattblank/)
 * (@mattblank)
 * [13 years ago](https://wordpress.org/support/topic/stripping-tags/#post-3777392)
 * Excellent! Works a charm.
 * Thank you so much 🙂
 * Matt

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Stripping Tags :(’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Matt Blank](https://wordpress.org/support/users/mattblank/)
 * Last activity: [13 years ago](https://wordpress.org/support/topic/stripping-tags/#post-3777392)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
