Pulling the_content() to a page outside of WP?
-
Is this possible. I’ve tried a few different ways of doing this, to no avail.
Most recently I tried the following code:
<?php echo $post->post_content; ?>
This pulls the content of each post in the blog, but it takes out some of the formatting, such as paragraph and line break tags, so that my posts are one large block of text. Still, it pulls images and puts appropriately tagged text in bold or italics, so I know it’s not just stripping the markup from each post, in order to just pull the text.
Is there a way to fix this so that paragraphs and line breaks show up? I’m sure I’ve seen the answer to this question in the Support somewhere, but for the life of me, I can’t find it now.
- The topic ‘Pulling the_content() to a page outside of WP?’ is closed to new replies.