# Fix broken images for posts created by the WP Discourse and RSS plugins

**URL:** https://meta.discourse.org/t/fix-broken-images-for-posts-created-by-the-wp-discourse-and-rss-plugins/160773
**Category:** Administrators
**Tags:** wordpress, rss-polling, how-to
**Created:** [August 13, 2020, 6:20pm UTC](https://meta.discourse.org/t/fix-broken-images-for-posts-created-by-the-wp-discourse-and-rss-plugins/160773 "2020-08-13T18:20:42Z")
**Posts on this page:** 1
**Showing post:** 15

<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: [January 19, 2021, 11:09pm UTC](https://meta.discourse.org/t/fix-broken-images-for-posts-created-by-the-wp-discourse-and-rss-plugins/160773/15 "2021-01-19T23:09:57Z")

</div>

> [@bobbysmith](#):
>
> However, when I click the Show Full Post button, it seems to enter a loading loop and never loads the full post (or does anything else for that matter).

The problem may be that Discourse is not able to find any content on the WordPress page. I wouldn’t expect this to cause a loop though. Discourse should just fail silently if it can’t find any content on the page. Just in case you are testing this with a post that has no real content, try creating a post with some actual text content and see if that makes a difference. You might also want to look into [How to configure the allowed embed selectors setting](https://meta.discourse.org/t/how-to-configure-the-allowed-embed-selectors-setting/134481). The `allowed embed selectors` setting can be used to help Discourse find the page’s content.

> [@bobbysmith](#):
>
> If I try to publish the full post to Discourse, that also works with a few quirks:
> 
> 1. images don’t load (which is how I found these topics);

Are you using the Block Editor to publish your WordPress posts? If so, how are the images being added to the posts? Are you using a plugin that adds custom image blocks?

> [@bobbysmith](#):
>
> it loads the full post (I have several buttons/links within each post’s contents that may confuse the plugin), but it also loads a perfectly formatted post excerpt at the end of the full post for some reason.

Does the post excerpt that it loads include the post’s images?

I wouldn’t expect the excerpt to be automatically loaded here. What I would expect is for the “Show Full Post” button to be displayed. Clicking that button should load the excerpt. When full post content is published from WordPress to Discourse, you can prevent the “Show Full Post” button from being displayed by disabling the Discourse `embed truncate` site setting.

> [@bobbysmith](#):
>
> I am just trying to find a workaround that is as simple as possible. Perhaps just Oneboxing the link to the post?

This might be a good solution for you. Have a look at [Customize the structure of WP Discourse templates](https://meta.discourse.org/t/wp-discourse-template-customization/50754/1) for details about how to customize the template that’s used to publish posts. There is an example template for publishing the post as a onebox [here](https://meta.discourse.org/t/wp-discourse-template-customization/50754/1#heading--publish-post-as-onebox).

---

_[View the full topic](https://meta.discourse.org/t/fix-broken-images-for-posts-created-by-the-wp-discourse-and-rss-plugins/160773)._
