# Companion Discourse plugin for Wordpress

**URL:** <https://meta.discourse.org/t/companion-discourse-plugin-for-wordpress/301265>\
**Category:** Feature\
**Tags:** wordpress\
**Created:** [March 28, 2024, 2:03am UTC](https://meta.discourse.org/t/companion-discourse-plugin-for-wordpress/301265 "2024-03-28T02:03:25Z")\
**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:** [March 28, 2024, 3:48am UTC](https://meta.discourse.org/t/companion-discourse-plugin-for-wordpress/301265/2 "2024-03-28T03:48:05Z")

</div>

> [@jimkleiber](#):
>
> to be able to identify WordPress HTML classes to be used in Discourse posts so that when the [WP Discourse](https://github.com/discourse/wp-discourse) plugin imports WordPress posts, the HTML classes do not get stripped out.
> 
> Maybe it could also include a way to import/mirror the CSS from WordPress so that the classes look the same as well.

I like the idea of being able to allow specific CSS classes for embedded posts.

Another possible approach for getting an accurate representation of content from external sites on Discourse would be to generate an embed version of each post on the external site. That version would be intended to be displayed in an iframe - similar to what Youtube does by creating a version of each video at `https://www.youtube.com/embed/video_id`.

Instead of posting HTML to Discourse, or having Discourse attempt to scrape the post’s HTML, the post content from the external site’s embed URL could be displayed in an iframe.

---

_[View the full topic](https://meta.discourse.org/t/companion-discourse-plugin-for-wordpress/301265)._
