# WP Discourse HTML Format not carried over

**URL:** <https://meta.discourse.org/t/wp-discourse-html-format-not-carried-over/66939>\
**Category:** WordPress\
**Created:** [27 Julho , 2017 16:09 UTC](https://meta.discourse.org/t/wp-discourse-html-format-not-carried-over/66939 "2017-07-27T16:09:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [27 Julho , 2017 17:37 UTC](https://meta.discourse.org/t/wp-discourse-html-format-not-carried-over/66939/2 "2017-07-27T17:37:28Z")

</div>

The issue with formatting is happening on the Discourse end. It is stripping out the `table` and `iframe` tags from the WordPress post. You can see how it works by creating a topic through the Discourse composer with `table` and `iframe` tags. The tags and the content inside of them will be removed.

It looks like you are using an iframe for displaying Youtube videos on your WordPress site. You can get videos to display on both WordPress and Discourse by just adding a link to the video on it’s own line in your WordPress post. If the video link is the first item in the post, you need to add a blank line above it.

```plaintext
This is a post with a Youtube video.

https://www.youtube.com/watch?v=sg209CadVQM&list=PL41PZuZMej3etzs5aj6R0EQ5S528otfec

```

I don’t see a good simple solution for displaying a table from a WordPress post in a Discourse topic. I’ll look at it a bit more and see if I can come up with something.

> [@dgrant](#):
>
> BTW the link to the original article is link in the forum is surrounded in ‘small’ tags. I would suggest it would be better to have a css class to make styling it easier.

The problem with this is the same as with `iframe` and `table` tags. If a class is added on the WordPress end it is stripped out when the post is parsed by Discourse. Discourse styles the `small` tag with `font-size: 9px`. To my eyes this is too small for any text. You can add a custom style to your forum to change that. If you only want it to effect `small` tags in posts, `.cooked small { font-size: 80%; }` should work.

---

_[View the full topic](https://meta.discourse.org/t/wp-discourse-html-format-not-carried-over/66939)._
