# Formatting the WP excerpt for Discourse

**URL:** <https://meta.discourse.org/t/formatting-the-wp-excerpt-for-discourse/55940>\
**Category:** WordPress\
**Created:** [18.Январь.2017 02:02:52 UTC](https://meta.discourse.org/t/formatting-the-wp-excerpt-for-discourse/55940 "2017-01-18T02:02:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [18.Январь.2017 04:41:47 UTC](https://meta.discourse.org/t/formatting-the-wp-excerpt-for-discourse/55940/2 "2017-01-18T04:41:47Z")

</div>

I don’t know the fix, but it sounds like wpautop (WordPress automatic p tags) is involved.

For example, a post is entered with 2 newlines to separate paragraphs.  
Instead of 2 `<br>` tags, (which granted, is not semantic), wpautop converts them to `<p>` tags while removing whitespace characters in the process.  
Discourse removes the `<p>` tags.

Maybe disable wpautop on the WordPress side, or whitellst p tags Discourse side?

---

_[View the full topic](https://meta.discourse.org/t/formatting-the-wp-excerpt-for-discourse/55940)._
