# Wordpress posts published to Discourse include HTML?

**URL:** https://meta.discourse.org/t/wordpress-posts-published-to-discourse-include-html/246439
**Category:** WordPress
**Created:** [November 22, 2022, 4:47pm UTC](https://meta.discourse.org/t/wordpress-posts-published-to-discourse-include-html/246439 "2022-11-22T16:47:56Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [November 23, 2022, 8:56am UTC](https://meta.discourse.org/t/wordpress-posts-published-to-discourse-include-html/246439/2 "2022-11-23T08:56:40Z")

</div>

Hey @vanclute,

Discourse is designed to handle HTML in the raw content of the posts. Unless you’re seeing HTML entities in the published version (i.e. what appears in the topic when you’re reading it) this is how it’s meant to work, and does work successfully for many Wordpress / Discourse combinations.

You can customise the HTML that is published to Discourse using the tips described here

> [@Customize the structure of WP Discourse templates](https://meta.discourse.org/t/customize-the-structure-of-wp-discourse-templates/50754):
>
> The [WP Discourse](https://github.com/discourse/wp-discourse) plugin uses HTML templates to add markup to Discourse comments for publishing on WordPress and to WordPress posts for publishing on Discourse. The text content of these templates can be customized on the plugin’s options page. To change the structure of a templates requires you to add a function to your theme’s functions.php file This #howto will explain how to do that. The templates In the plugin’s code, the templates are static functions that return a mixture of html and templ…

The reason it is HTML rather than markdown is explained further here

> [@Wordpress plugin and html-as-text (especially for mail)](https://meta.discourse.org/t/wordpress-plugin-and-html-as-text-especially-for-mail/240502/8):
>
> Ok, I’m going to respond to the issues you’re raising here separately. I understand why you’re connecting them, but hopefully you’ll see why they’re separate issues. HTML entites in plain text email notifications the nicest thing would be for the email messages to be multi-part with a clean-text rendered markdown text/plain and a separate text/html This is actually how Discourse email notifications currently work. If you look at the “original” of a Discourse email notification you’ll see the…

---

_[View the full topic](https://meta.discourse.org/t/wordpress-posts-published-to-discourse-include-html/246439)._
