The discussion explores why some blog posts in Discourse display previews (oneboxes) while others only show URLs. Scot noticed that links to certain blogs, like pollstar.com, generate previews, but others, such as ilovevegan.com and sobervegan.com, do not. Jameshahnii explains that this is due to Discourse’s onebox feature, which relies on Open Graph metadata. Simon clarifies that the issue with ilovevegan.com is that WPEngine blocks the Discourse onebox user agent, while the problem with sobervegan.com is the absence of Open Graph tags on the page. Scot confirms he is using WordPress on BlueHost and seeks help. Simon advises adding Open Graph tags to the WordPress site. msmith512 updates the thread, noting that oneboxes now work for WPEngine sites, indicating a resolution for some cases.
I am not sure if this is a Wordpress question or a Discourse questions but hopefully someone here will be bale to help me out. On my Discourse site - If I post a link like this one:
Discourse oneboxes do work with WordPress sites. If a link fails to onebox, it is likely because either the page it links to is missing the necessary Open Graph data, or because the request from Discourse is being blocked by the website’s server.
The website you are trying to link to is hosted by WPEngine. They are blocking requests from the Discourse Forum Onebox user agent. To allow sites hosted by WPEngine to create oneboxes on Discourse, the owner of the site needs to contact WPEngine and ask them to allow the Discourse Forum Onebox User Agent. If you are the owner of the website, it would be great if you could contact WPEngine support and ask about this. We would like them to allow requests made with the Discourse Forum Onebox User Agent by default.
I probably should have used an example from my own blog that is not working with onebox. I run the blog on WordPress and it is hosted by BlueHost. This is a sample link that is not working: