Title: code view and &lt;p&gt; tags
Last modified: August 19, 2016

---

# code view and <p> tags

 *  [loquela](https://wordpress.org/support/users/loquela/)
 * (@loquela)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/code-view-and-ltpgt-tags/)
 * I’ve noticed that <p> tags are not included in the Code View or in the text sent
   to the database, but when the post is published and displayed the <p> **are **
   included.
 * Does anybody know what WordPress does to re-instate the <p> tags?
 * I want to grab posts directly from the database to use in another site but its
   just feedin the raw text without the <p> tags. All other formatting is preserved.

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

 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/code-view-and-ltpgt-tags/#post-686095)
 * wautop –> [http://wordpress.org/search/wpautop?forums=1](http://wordpress.org/search/wpautop?forums=1)
 * Probably the most well-known of WordPress’ core functions. 🙂
 *  Thread Starter [loquela](https://wordpress.org/support/users/loquela/)
 * (@loquela)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/code-view-and-ltpgt-tags/#post-686342)
 * Thanks for this whooami,
    I am pulling posts directly from a wordpress database
   into another site: [http://educationaldesign.co.uk/blog.php](http://educationaldesign.co.uk/blog.php)
 * When I do this the line breaks or rather paragraphs don’t show in the HTML.
 * I suppose I need some kind of regular expression to convert the \n to <p> or 
   <br> (?) but my php knowledge needs a boost. Could anyone offer any help? Please?
 * Many thanks,
 * Simon

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

The topic ‘code view and <p> tags’ is closed to new replies.

## Tags

 * ["p tags"](https://wordpress.org/support/topic-tag/p-tags/)
 * [formatting](https://wordpress.org/support/topic-tag/formatting/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [loquela](https://wordpress.org/support/users/loquela/)
 * Last activity: [18 years, 2 months ago](https://wordpress.org/support/topic/code-view-and-ltpgt-tags/#post-686342)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
