惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Y
Y Combinator Blog
博客园 - 叶小钗
GbyAI
GbyAI
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Stack Overflow Blog
Stack Overflow Blog
Jina AI
Jina AI
Microsoft Security Blog
Microsoft Security Blog
T
Tailwind CSS Blog
S
SegmentFault 最新的问题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
Martin Fowler
Martin Fowler
有赞技术团队
有赞技术团队
Hugging Face - Blog
Hugging Face - Blog
N
Netflix TechBlog - Medium
B
Blog
MongoDB | Blog
MongoDB | Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
V
V2EX
雷峰网
雷峰网
Apple Machine Learning Research
Apple Machine Learning Research
人人都是产品经理
人人都是产品经理

Discourse Meta - Latest posts

Horizon: High Context Topic Cards I'd like to ask what this file /var/www/discourse/vendor/data/RT_sRGB.icm is used for? Discourse to Markdown Plugin Testing reply function How to verify a subdomain (mysite.discourse.group) in Google Search Console? Reader Mode Discourse User Feedback New user filter by custom field and contact Interact with discourse from Python? Why we can't type the assignee in the search of a post to assign - home screen app Redis Flushall Category-toggled one-touch move post Some sort of variable to eliminate duplicate text? Why did this plugin replacement fail? Add user to list modal often appears above the mobile viewport sceen Creating/Editing a post on mobile: let's discuss the 2026 Discourse experience Wp-discourse feature request - do not show comments with specific tag? Are there any good Chinese plugins? Discourse ID and 2FA Discourse MCP is here! Sample Forum to See Admin Features? I am unable to register for a free Discourse site Wikipedia Lookup Add text for /login (like js.create_account.disclaimer for /signup) How can i set disable Markdown & Default to Rich Text What's the background image size for the Welcome Banner? How do I enable Associated Accounts with 2FA? Hamburger toggle Support <span data-attribute> in the rich editor Cannot disable read-only mode on Free Plan
Publishing WordPress gallery posts on Discourse
@FrancescoM · 2026-04-19 · via Discourse Meta - Latest posts

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 :slightly_smiling_face:

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? :folded_hands: Thank you

angus (Angus McLeod) April 19, 2026, 11:40am 4

Hey @FrancescoM,

Just to clarify what your issue is, you’re saying that

  1. You have been using the Publish functionality of the WP Discourse plugin for some time.
  2. You created this post with a gallery of images in Wordpress and it published to Discourse as this topic.
  3. The preview text in the first post of the Discourse topic is “Excalibur Hybrid X – Photos and shooting test” and when you click “Show Full Message” you see “© 2026 La Balestra Moderna. Copying, publishing, reproducing, or redistributing the contents in any way or form is prohibited.”

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 :folded_hands:

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 :folded_hands:

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 :folded_hands:

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 :folded_hands:

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 :folded_hands:

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 :folded_hands:

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_selectors
  • blocked_embed_selectors
  • allowed_embed_classnames
  • embed_title_scrubber

But these won’t directly affect how Readability handles images.

FrancescoM (Francesco) April 19, 2026, 2:08pm 15

Thank you so much :folded_hands:

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!