Title: Which function formats the output?
Last modified: August 19, 2016

---

# Which function formats the output?

 *  [ryy705](https://wordpress.org/support/users/ryy705/)
 * (@ryy705)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/which-function-formats-the-output/)
 * Hello,
    I pulling a post’s content using database query and printing it out. 
   Unfortunately, I am loosing all the formatting that WP puts in when outputting
   content. Such as the additional br tags. Which function does WP use to format
   the output? I would like to put the content through that function before printing
   it. Many thanks in advance for your help.

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/which-function-formats-the-output/#post-1874786)
 * Why are you using a db query instead of something like get_posts?
 *  Thread Starter [ryy705](https://wordpress.org/support/users/ryy705/)
 * (@ryy705)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/which-function-formats-the-output/#post-1874820)
 * Because I am allowing the user to print the content of one post in another. I
   created a shortcode that pulls posts by title like so:
    `[includepage="My Title"]`
   How would you do this?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/which-function-formats-the-output/#post-1874886)
 * I’d use [get_posts](http://codex.wordpress.org/Function_Reference/get_posts).

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

The topic ‘Which function formats the output?’ is closed to new replies.

 * 3 replies
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/which-function-formats-the-output/#post-1874886)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
