# Pourquoi certains articles de blog sur Discourse ont-ils un aperçu ?

**URL:** https://meta.discourse.org/t/why-do-some-blog-posts-in-discourse-have-a-preview/96158
**Category:** Support
**Created:** [Septembre 1, 2018, 6:02 UTC](https://meta.discourse.org/t/why-do-some-blog-posts-in-discourse-have-a-preview/96158 "2018-09-01T18:02:56Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Scot](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@Scot](https://meta.discourse.org/u/Scot)
#### Post date: [Septembre 1, 2018, 6:02 UTC](https://meta.discourse.org/t/why-do-some-blog-posts-in-discourse-have-a-preview/96158/1 "2018-09-01T18:02:56Z")

</div>

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:

“[https://www.pollstar.com/article/paul-mccartney-ready-to-freshen-up-us-136222](https://www.pollstar.com/article/paul-mccartney-ready-to-freshen-up-us-136222)”

It will show me this preview:

 ![25%20AM](https://global.discourse-cdn.com/meta/original/3X/a/7/a76e31af2d0f27c1437f8690c898ccc854b729ab.png)

Other blog post links like this one only give me the URL:

> **[12 Vegan Recipes with Avocado (Happy National Avocado Day!) » I LOVE VEGAN](https://ilovevegan.com/12-vegan-recipes-with-avocado-happy-national-avocado-day/)**
>
> It's July 31st! Not only is it the last day of July, Harry Potter's Birthday, and half way point of 2018, it's also National Avocado Day! What a day!In celebration we've collected 12 of our favourite I Love Vegan recipes that use avocado. 'Cause who...

Does anyone know why?

Thank you,  
Scot

---

<div class="post-metadata">

### Author: ![jameshahnii](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jameshahnii/32/108982_2.png) [@jameshahnii](https://meta.discourse.org/u/jameshahnii)
#### Post date: [Septembre 1, 2018, 7:25 UTC](https://meta.discourse.org/t/why-do-some-blog-posts-in-discourse-have-a-preview/96158/2 "2018-09-01T19:25:25Z")

</div>

It’s my understanding this is a function of discourse/onebox.

[https://github.com/discourse/onebox](https://github.com/discourse/onebox)

Doesn’t appear to work with WordPress installations. Because it doesn’t pull in our regular site either.

> **[Tribe Rocket](https://triberocket.com/)**
>
> Client-side editing workspace for faceless short-form social videos.

Not sure why this is, but hopefully at least gets half of your question answered 🙂

> **[12 Vegan Recipes with Avocado (Happy National Avocado Day!) » I LOVE VEGAN](https://ilovevegan.com/12-vegan-recipes-with-avocado-happy-national-avocado-day/)**
>
> It's July 31st! Not only is it the last day of July, Harry Potter's Birthday, and half way point of 2018, it's also National Avocado Day! What a day!In celebration we've collected 12 of our favourite I Love Vegan recipes that use avocado. 'Cause who...

… had to try one more time 😉

---

<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: [Septembre 1, 2018, 8:31 UTC](https://meta.discourse.org/t/why-do-some-blog-posts-in-discourse-have-a-preview/96158/3 "2018-09-01T20:31:30Z")

</div>

> [@jameshahnii](#):
>
> Doesn’t appear to work with WordPress installations

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.

You can check the Open Graph data for a URL here: [http://iframely.com/debug](http://iframely.com/debug).

> [@Scot](#):
>
> Other blog post links like this one only give me the URL:
> 
> [http://www.ilovevegan.com/12-vegan-recipes-with-avocado-happy-national-avocado-day/](http://www.ilovevegan.com/12-vegan-recipes-with-avocado-happy-national-avocado-day/)
> 
> Does anyone know why?

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.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [Septembre 1, 2018, 10:37 UTC](https://meta.discourse.org/t/why-do-some-blog-posts-in-discourse-have-a-preview/96158/5 "2018-09-01T22:37:30Z")

</div>

WPEngine is known to blacklist https requests from user-agents they don’t like @jameshahnii.

(I deleted the extremely verbose support chat you posted since it can be correctly summarized with the previous sentence I just wrote.)

---

<div class="post-metadata">

### Author: ![Scot](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@Scot](https://meta.discourse.org/u/Scot)
#### Post date: [Septembre 3, 2018, 10:22 UTC](https://meta.discourse.org/t/why-do-some-blog-posts-in-discourse-have-a-preview/96158/6 "2018-09-03T22:22:45Z")

</div>

Hi Guys,

I appreciate the responses. I learned two things:

1. That feature is called onebox.

2. 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](https://www.bluehost.com/). This is a sample link that is not working:

[https://sobervegan.com/hey-honey-are-you-vegan/](https://sobervegan.com/hey-honey-are-you-vegan/)

The blog is not finished yet so please ignore the layout issues you might see. The forum is hosted by [Digital Ocean](https://www.digitalocean.com/) at:

[https://forum.sobervegan.com/](https://forum.sobervegan.com/)

I would appreciate if anyone knows how I can get my own blog posts to be recognized by onebox.

Thank you,  
Scot

---

<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: [Septembre 3, 2018, 11:31 UTC](https://meta.discourse.org/t/why-do-some-blog-posts-in-discourse-have-a-preview/96158/7 "2018-09-03T23:31:22Z")

</div>

The problem with [https://sobervegan.com/hey-honey-are-you-vegan/](https://sobervegan.com/hey-honey-are-you-vegan/) is that the page it points to is missing the Open Graph tags that Discourse needs to find before it can create a onebox.

Searching Google for ‘add open graph tags wordpress’ returns some good results. This page gives a few options for how to do it: [How To Add Open Graph Meta Tags To WordPress](https://www.elegantthemes.com/blog/tips-tricks/how-to-add-open-graph-tags-to-wordpress).

---

<div class="post-metadata">

### Author: ![Scot](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@Scot](https://meta.discourse.org/u/Scot)
#### Post date: [Septembre 14, 2018, 1:02 UTC](https://meta.discourse.org/t/why-do-some-blog-posts-in-discourse-have-a-preview/96158/8 "2018-09-14T01:02:45Z")

</div>

Thank you Simon. I will check it out and see if I can learn more about this. I appreciate your help.

- Scot

---

<div class="post-metadata">

### Author: ![msmith512](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/msmith512/32/159265_2.png) [@msmith512](https://meta.discourse.org/u/msmith512)
#### Post date: [Octobre 22, 2019, 3:09 UTC](https://meta.discourse.org/t/why-do-some-blog-posts-in-discourse-have-a-preview/96158/9 "2019-10-22T15:09:45Z")

</div>

Je remonte ce fil pour signaler que [URL previews are now working for WP Engine sites](https://meta.discourse.org/t/url-previews-are-now-working-for-wp-engine-sites/131641).

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [Juillet 2, 2023, 10:05 UTC](https://meta.discourse.org/t/why-do-some-blog-posts-in-discourse-have-a-preview/96158/10 "2023-07-02T22:05:41Z")

</div>



---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [Juillet 3, 2023, 2:35 UTC](https://meta.discourse.org/t/why-do-some-blog-posts-in-discourse-have-a-preview/96158/11 "2023-07-03T02:35:05Z")

</div>


