Images not displaying on Discourse

AI-generated summary

Canapin reports that images sometimes fail to display when publishing WordPress posts to Discourse, despite working reliably since 2017. The workaround found is to re-publish the WP post without changes. simon suggests this may be related to a known issue in WP 5.3, referencing this meta.discourse.org post, and offers two potential fixes: disabling the Discourse setting “download remote images to local,” or publishing only post excerpts instead of full content — which ensures images load correctly when users click “Show Full Post.” Canapin thanks simon and plans to continue the discussion on the referenced thread.

Hi.
I have had this issue for a few months. Sometimes, when an article is published from WP to Discourse, the images won’t appear:


The only way I found in order to have the image working is to update the WP post to force a re-publish (even without modifying anything in the content).

Any idea how to debug this? It was working well since 2017.

Here are my WP-Discourse settings:

From your screenshot, it looks like you are having the issue that is described in this post: Images not publishing to Discourse in WP 5.3 - #8 by simon. If that is the case, then I’m not sure there is a good solution other than disabling the Discourse download remote images to local site setting.

The other option is to not publish full post content to Discourse. If you publish excerpts instead of the full post, images should be correctly displayed when users click the “Show Full Post” button.

Thank you very much. I’ll continue the discussion on the original post.