
























April 18, 2026, 10:36am 1
Hello,
I’ve been using the “WP Discourse” plugin for months now, and it has always worked well with articles composed of galleries plus paragraphs.
I published an article on the blog containing only a gallery of about 60 images, but it is not being displayed on Discourse in the linked topic. Instead, it extracted the text from a GDPR plugin first, and then the footer text.
How can I resolve this? Do I need to add some code to the theme’s functions.php file?
I look forward to your reply. Thank you very much ![]()
I specify the links to the related Forum post
FrancescoM (Francesco) April 19, 2026, 10:57am 3
Hi, any news?
I think the problem is on Discourse but I don’t know how to fix it.
Can anyone help please?
Thank you
angus (Angus McLeod) April 19, 2026, 11:40am 4
Hey @FrancescoM,
Just to clarify what your issue is, you’re saying that
I gather that you’re saying that the issue is 3? Specifically, you’re expecting to see the images when you click “Show Full Message”. Is that right?
Hi @angus and thank you for your answer ![]()
Yes that’s correct. For previously published posts, everything worked fine. I see both the gallery and the text after clicking the “Show Full Post” button.
I’ve attached a working example post here, both on WordPress and Discourse.
In this post there are photos as Gallery and some text.
If the post contains only images (inserted as Gallery), Discourse displays either the footer text or the message in the “Moove GDPR Cookie Compilation” plugin popup. If I disable the GDPR plugin, I see the footer.
If I insert an images as “Photo” (Gutenberg Block), Discourse will show the image but not the Gallery.
How can I fix this? Thanks again ![]()
angus (Angus McLeod) April 19, 2026, 12:05pm 6
The difference is that in the case you reported the Wordpress post only has images in it. In this other case the post also has text in it. Would it be possible to add text before the images in the post you’re having an issue with?
FrancescoM (Francesco) April 19, 2026, 12:12pm 7
Yes, I added some text before and after the gallery block, but on Discourse I saw only that text, without the images.
This is the text I added on the post before the “Gallery” block:
Excalibur Hybrid X – Foto e prova di tiro
Am I doing something wrong? Or do I need to delete the post and publish it again?
Thank you ![]()
angus (Angus McLeod) April 19, 2026, 12:14pm 8
Yes, I would suggest publishing the post again with some text and the images and see if that fixes it. If that doesn’t work we can investigate other options.
I just deleted the topic on Discourse and added some text before and after the Gutenberg “Gallery” block, but unfortunately, it didn’t work. The content is clearly visible in the summary, but as soon as I click the button, it’s replaced by the GDPR plugin message.
Here’s the link to the new topic:
What can I do now to investigate and resolve the issue? I alsoi cleared the cache of WordPress (LiteSpeed and Cloudflare).
Do you need my WP-Discourse settings?
Thanks again ![]()
angus (Angus McLeod) April 19, 2026, 12:30pm 10
Looks like you didn’t make a new post on Wordpress. If you re-use the same post on Wordpress the same preview content is going to be cached. Try making a new post on Wordpress with the same photos but with text at the start.
I created this post here on WordPress
And the topic linked here
But it’s not working. Maybe I need to insert more text? Or it should be showing anyway?
Thanks again ![]()
angus (Angus McLeod) April 19, 2026, 1:31pm 12
The basic issue is that the way content is pulled from your site is that it uses a gem called Readability which is based on the Mozilla reader view algorithm.
Essentially what is happening here is that the readability algorithm doesn’t play nicely with image-heavy content. The preview feature is intended for posts that are mostly text.
Basically, yes. One way to test is to use the reader view in Firefox with your Wordpress post to see what the readability gem is likely to produce.
FrancescoM (Francesco) April 19, 2026, 2:01pm 13
Thank you very much for the detailed answer @angus ![]()
Can I edit this Readability test in Discourse?
Also I’ll do some tests by adding text and some descriptions and I’ll let you know.
Thank you again!
angus (Angus McLeod) April 19, 2026, 2:05pm 14
You can control the HTML selectors Readability looks at to scrape the content with these site settings:
allowed_embed_selectorsblocked_embed_selectorsallowed_embed_classnamesembed_title_scrubberBut these won’t directly affect how Readability handles images.
FrancescoM (Francesco) April 19, 2026, 2:08pm 15
Thank you so much ![]()
I noticed that Firefox Readability Mode doesn’t show on that Gallery Post, I’ll try to add more text and also some image descriptions…
But first I’ll take a look at these settings.
Thank you again for your help, I’ll let you know!
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。