# Wistia video showing image in discourse embedded posts

**URL:** https://meta.discourse.org/t/wistia-video-showing-image-in-discourse-embedded-posts/282886
**Category:** Support
**Created:** [October 20, 2023, 11:32am UTC](https://meta.discourse.org/t/wistia-video-showing-image-in-discourse-embedded-posts/282886 "2023-10-20T11:32:36Z")
**Posts on this page:** 1
**Showing post:** 7

<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: [October 24, 2023, 12:42am UTC](https://meta.discourse.org/t/wistia-video-showing-image-in-discourse-embedded-posts/282886/7 "2023-10-24T00:42:38Z")

</div>

The reason this is happening is because the “Show Full Post” button on an embedded post in Discourse works by “re-crawling” the embedded webpage when the user clicks it. The HTML you see when you click that button is not being sent by the [WP Discourse](https://github.com/discourse/wp-discourse) plugin when the post is published, it’s a fresh crawl of the relevant page.

Web crawling is always a bit hit and miss due to the wide variety of possible HTML structures (e.g. there are many different ways of displaying images in HTML). Because of this, this is a feature that is being considered for a possible improvement. See further

> [@Topic embedding needs some love](https://meta.discourse.org/t/topic-embedding-needs-some-love/262763):
>
> I was reminded of this today after clicking the “Show Full Post” button for [Introducing Discourse AI](https://meta.discourse.org/t/introducing-discourse-ai/262744). The full post that is displayed on Discourse is missing all images and many headings. Adding to the confusion, image captions are displayed, but without their associated images. It might be possible to fix the issue on Meta for its (Ghost?) blog by adjusting Meta’s allowed embed selectors site setting: [Configuring allowed embed selectors](https://meta.discourse.org/t/configure-the-allowed-embed-selectors-setting/134481). From past experience, I know that getting this setting c…

So there isn’t currently an easy solution. You can attempt to block and allow HTML selectors the crawler uses, however this is a tricky thing to get working in the way you want. See further

> [@How to customize the text in an embedded post?](https://meta.discourse.org/t/how-to-customize-the-text-in-an-embedded-post/214826/7#customize-what-html-is-pulled-from-your-site-1):
>
> Thanks for explaining Kevin. There are no settings specifically directed at this issue, but there’s two ways you could approach this. Customize what HTML is pulled from your site The way embeds work is that they scrape the content from a site using the [Readability](https://github.com/cantino/ruby-readability) gem. The gem and it’s output use the following options to filter what HTML is scraped opts[:whitelist] = SiteSetting.allowed\_embed\_selectors if SiteSetting.allowed\_embed\_selectors.present? opts[:blacklist] = SiteSetting.blocked\_embed…

A simpler way of addressing this is to either hide the “Show Full Post” button, or override it so it links back to the original Wordpress post, using a custom theme component. When a site has a relatively complex post HTML structure involving images, like yours, I tend to advise these latter options.

---

_[View the full topic](https://meta.discourse.org/t/wistia-video-showing-image-in-discourse-embedded-posts/282886)._
