Title: Grab post content
Last modified: August 18, 2016

---

# Grab post content

 *  [swinneyj](https://wordpress.org/support/users/swinneyj/)
 * (@swinneyj)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/grab-post-content/)
 * I am testing the WordPress software to use on my website as way for other specific
   users to post content without my help. I have gotten it to work just like I want
   it to except for one thing: the `post_content` isn’t stored in a html-friendly
   format. I’ve waded through the code to try to find the formatting function(s)
   but I haven’t had much luck finding exactly what does the magic.
 * Is there an easy way to
    (1) call the formatting function on the SQL result OR(
   2) use WordPress software directly to print the post only (no fancy themes or
   wrappers) from within a PHP file?
 * Thanks for your help!

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

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/grab-post-content/#post-493154)
 * Some instructions here:
 * [http://codex.wordpress.org/Creating_a_Static_Front_Page#Integrating_WordPress](http://codex.wordpress.org/Creating_a_Static_Front_Page#Integrating_WordPress)
 * for embedding WordPress elements in an external (i.e. non-WordPress) PHP document.
 *  Thread Starter [swinneyj](https://wordpress.org/support/users/swinneyj/)
 * (@swinneyj)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/grab-post-content/#post-493186)
 * Well that’s close to what I’m talking about. I still need to know how to call
   the function that converts `$np->post_content` into something that the browser
   will dislpay correctly.
 * Thanks again.
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/grab-post-content/#post-493188)
 * “_I still need to know how to call the function that converts $np->post\_content
   into something that the browser will dislpay correctly._“
 * I’ll assume you mean displays the post content with the auto-text formatting 
   one gets used to in WordPress. You can do that like so:
 * `echo apply_filters('the_content', $np->post_content);`

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

The topic ‘Grab post content’ is closed to new replies.

## Tags

 * [html](https://wordpress.org/support/topic-tag/html/)
 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [post_content](https://wordpress.org/support/topic-tag/post_content/)
 * [sql](https://wordpress.org/support/topic-tag/sql/)

 * 3 replies
 * 2 participants
 * Last reply from: [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * Last activity: [19 years, 5 months ago](https://wordpress.org/support/topic/grab-post-content/#post-493188)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
