Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 134762

mattblank on "Stripping Tags :("

$
0
0

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 all articles
Browse latest Browse all 134762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>