Title: post-&gt;post_content
Last modified: August 21, 2016

---

# post->post_content

 *  Resolved [amazon3d](https://wordpress.org/support/users/amazon3d/)
 * (@amazon3d)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/post-post_content/)
 * I have a index page that pulls some of its content from another page.
    The issue
   that I am having is the content it is pulling is not getting formatted correctly.
   When I pull it over it crunches the text together are removes the <p> spacing.
 * This is the code I use.
 * `<?php $id="33-2"; $post = get_page($id); echo $post->post_content; ?>`

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/post-post_content/#post-3675271)
 * example:
 *     ```
       <?php $id="33-2"; $post = get_page($id); echo apply_filters('the_content', $post->post_content); ?>
       ```
   
 *  Thread Starter [amazon3d](https://wordpress.org/support/users/amazon3d/)
 * (@amazon3d)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/post-post_content/#post-3675564)
 * That still does not appear to do it.
    New lines are not starting like they should.
   [](http://174.121.224.194/~mccranie/beta/)
 *  Thread Starter [amazon3d](https://wordpress.org/support/users/amazon3d/)
 * (@amazon3d)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/post-post_content/#post-3675565)
 * [Page with issue](http://174.121.224.194/~mccranie/beta/)
 *  Thread Starter [amazon3d](https://wordpress.org/support/users/amazon3d/)
 * (@amazon3d)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/post-post_content/#post-3675566)
 * I take that back, THANK YOU. I forgot to hit upload before I refreshed page lol.
 *  Thread Starter [amazon3d](https://wordpress.org/support/users/amazon3d/)
 * (@amazon3d)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/post-post_content/#post-3675567)
 *     ```
       <?php $id="33-2"; $post = get_page($id); echo apply_filters('the_content', $post->post_content); ?>
       ```
   
 * Resolved the issue, I had seen the code elsewhere but didn’t think to try it.

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

The topic ‘post->post_content’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [amazon3d](https://wordpress.org/support/users/amazon3d/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/post-post_content/#post-3675567)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
