# Images not publishing to Discourse in WP 5.3

**URL:** https://meta.discourse.org/t/images-not-publishing-to-discourse-in-wp-5-3/133636
**Category:** WordPress
**Created:** [17 november 2019 om 23:26 UTC](https://meta.discourse.org/t/images-not-publishing-to-discourse-in-wp-5-3/133636 "2019-11-17T23:26:25Z")
**Posts on this page:** 7
**Page:** 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: [16 mei 2020 om 17:38 UTC](https://meta.discourse.org/t/images-not-publishing-to-discourse-in-wp-5-3/133636/23 "2020-05-16T17:38:10Z")

</div>

Adding `https://www.youtube-nocookie.com` to your Discourse `allowed iframes` site setting should fix the issue. You will need to click the “Rebuild HTML” button for posts that have already been published to get the videos to show up.

> [@Canapin](#):
>
> I guess the issue is more on my side than yours, still, it was working well before the update

The update shouldn’t change anything for posts that have not been published with the Block editor. When I try publishing the markup you shared, I get the exact same result when I try publishing the post with the old [WP Discourse](https://github.com/discourse/wp-discourse) code as I do when I publish it with the updated code.

What version of WordPress is your site on?

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [16 mei 2020 om 17:54 UTC](https://meta.discourse.org/t/images-not-publishing-to-discourse-in-wp-5-3/133636/24 "2020-05-16T17:54:51Z")

</div>

> [@simon](#):
>
> Adding `https://www.youtube-nocookie.com` to your Discourse `allowed iframes` site setting should fix the issue.

It worked perfectly!

Thank you for your advice.

I’m using WP 5.4.1.

---

<div class="post-metadata">

### Author: ![davidkingham](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidkingham/32/119528_2.png) [@davidkingham](https://meta.discourse.org/u/davidkingham)
#### Post date: [4 juni 2020 om 17:58 UTC](https://meta.discourse.org/t/images-not-publishing-to-discourse-in-wp-5-3/133636/25 "2020-06-04T17:58:46Z")

</div>

> [@simon](#):
>
> I have just pushed [WP Discourse version `2.0.2`](https://wordpress.org/plugins/wp-discourse/) to the WordPress plugin repo. The update should fix the issue with broken images that’s been happening when posts are published to Discourse with the Block editor.

Unfortunately this is not working for me. The images show intially and then disapear. I have tried with download remote images enabled and disabled.

I just published this: [https://www.naturephotographers.network/connecting-with-our-audience/](https://www.naturephotographers.network/connecting-with-our-audience/)

Here is the Discourse topic: [Connecting With Our Audience - Articles - Nature Photographers Network](https://community.naturephotographers.network/t/connecting-with-our-audience/14555)

I’m on 2.0.5 and the latest Discourse

---

<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: [4 juni 2020 om 18:15 UTC](https://meta.discourse.org/t/images-not-publishing-to-discourse-in-wp-5-3/133636/26 "2020-06-04T18:15:04Z")

</div>

> [@davidkingham](#):
>
> Here is the Discourse topic: [Connecting With Our Audience - Articles - Nature Photographers Network](https://community.naturephotographers.network/t/connecting-with-our-audience/14555)

When I go to that topic, I’m seeing images being served from `wpengine`. Possibly you have already edited the post or have disabled the `download remote images` setting.

One thing that’s surprising is that some images have their source set to `http://www.naturephotographers.network/` and some images have their source set to `https://natphotonet.wpengine.com/`. The images with their source set to `http://www.naturephotographers.network/` are creating mixed content warnings on your Discourse site. I’m not sure why you’re getting two different image sources.

---

<div class="post-metadata">

### Author: ![davidkingham](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidkingham/32/119528_2.png) [@davidkingham](https://meta.discourse.org/u/davidkingham)
#### Post date: [4 juni 2020 om 20:38 UTC](https://meta.discourse.org/t/images-not-publishing-to-discourse-in-wp-5-3/133636/27 "2020-06-04T20:38:52Z")

</div>

I noticed that as well and it seems to be part of the problem. I did try editing the post to change those urls, which worked temporarily and then they disappeared again. Then I updated it from wordpress to reset it back and that was what came over. I just turned download remote images back on and updated the post again with the same results. This seems to be a never ending problem so I’m going to suck it up and switch over to an excerpt. I appreciate all your help trying to get this to work but there seems to be too many variables to make this option reliable sadly.

---

<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: [13 augustus 2020 om 18:24 UTC](https://meta.discourse.org/t/images-not-publishing-to-discourse-in-wp-5-3/133636/28 "2020-08-13T18:24:47Z")

</div>

The issue with broken images should be fixed for most cases when the Block Editor is used for publishing posts. If you are finding broken images in posts that have been published with the Block Editor, let me know.

If you are unable to use the Block editor, or if using it is not resolving the issue, see [Fix broken images for posts created by the WP Discourse and RSS plugins](https://meta.discourse.org/t/fix-broken-images-for-posts-created-by-the-wp-discourse-and-rss-plugins/160773) for details about resolving the issue. The short version of that topic is that you can prevent the issue by adding the domain that your images are being served from to your Discourse `disabled image download domains` site setting.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [14 december 2022 om 15:46 UTC](https://meta.discourse.org/t/images-not-publishing-to-discourse-in-wp-5-3/133636/29 "2022-12-14T15:46:41Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

[Previous page](https://meta.discourse.org/t/images-not-publishing-to-discourse-in-wp-5-3/133636.md?page=1)
