# Why are some WordPress links Oneboxed, and others are not?

**URL:** <https://meta.discourse.org/t/why-are-some-wordpress-links-oneboxed-and-others-are-not/28778>\
**Category:** Feature\
**Created:** [2015年五月13日 17:16 UTC](https://meta.discourse.org/t/why-are-some-wordpress-links-oneboxed-and-others-are-not/28778 "2015-05-13T17:16:40Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![BCHK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bchk/32/3268_2.png) [@BCHK](https://meta.discourse.org/u/BCHK)\
**Post date:** [2015年五月13日 17:16 UTC](https://meta.discourse.org/t/why-are-some-wordpress-links-oneboxed-and-others-are-not/28778/1 "2015-05-13T17:16:40Z")

</div>

I really can’t understand why wordpress oneboxing isn’t a higher priority than it seems to be. I mean my impression was that Discourse wanted to be the “Wordpress” of forums - … and everyone knows how prevalent wordpress blogs are - so why not a special feature that auto-one boxes word press blog entries. (or even better - any web page - just pull out the first x number of words in the body of the web page).

I have to believe that it would greatly improve Boing BOing’s conversations.

Does anyone really think that this is the most helpful way to start a conversation?

[![](https://global.discourse-cdn.com/meta/original/4X/f/b/b/fbb965e389207dcb47f07fc6b87d5df1ae077965.png) ](https://content.evernote.com/shard/s106/sh/71926007-1a0a-4ba2-8d60-020c70e3df96/2b195e8391fda5dce69ae5a1047756cb/deep/0/How%20to%20buy%20secret%20cookies%20baked%20by%20cloistered%20Spanish%20nuns%20-%20boing%20-%20Boing%20Boing%20BBS.png)

---

<div class="post-metadata">

**Author:** ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)\
**Post date:** [2015年五月13日 17:25 UTC](https://meta.discourse.org/t/why-are-some-wordpress-links-oneboxed-and-others-are-not/28778/2 "2015-05-13T17:25:20Z")

</div>

This is how wordpress oneboxing actually looks.. pretty nice.

> **[How to buy secret cookies baked by cloistered Spanish nuns](https://boingboing.net/2015/05/13/how-to-buy-secret-cookies-bake.html)**
>
> When we heard about the semi-secret cookies baked by secluded nuns in Madrid, Spain, naturally we had to seek out these mythical treats. Here's what we found.

I’m not sure why the boingboing folks are not choosing to include an excerpt in the discourse topics generated for blog discussions - the `[Permalink]` text is their choice. On [our](http://community.namati.org/t/we-are-looking-at-gold-and-calling-it-rock/839) [sites](https://forum.kabissa.org/t/20-000-in-bonus-prizes-and-matching-funds-available-from-globalgiving-kabissa-blog/3474?u=tobiaseigen) we do it differently. Maybe it’s because they want to focus on the blog post (for SEO and actual reading) and not the discourse topic?

---

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [2015年五月13日 17:26 UTC](https://meta.discourse.org/t/why-are-some-wordpress-links-oneboxed-and-others-are-not/28778/3 "2015-05-13T17:26:05Z")

</div>

boingboing choose to go that route, if you look at [Sitepoint](http://community.sitepoint.com/t/securing-wordpress-against-hackers-and-ddos-attacks/189558), you’ll see we do an excerpt. From what I understand, that process is pretty customizable.

---

<div class="post-metadata">

**Author:** ![BCHK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bchk/32/3268_2.png) [@BCHK](https://meta.discourse.org/u/BCHK)\
**Post date:** [2015年五月13日 17:43 UTC](https://meta.discourse.org/t/why-are-some-wordpress-links-oneboxed-and-others-are-not/28778/4 "2015-05-13T17:43:05Z")

</div>

Where are these settings? I don’t see anything under the OneBox settings that suggest it can work with Wordpress. It doesn’t do this for my wordpress site…

Thanks.

---

<div class="post-metadata">

**Author:** ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)\
**Post date:** [2015年五月13日 17:52 UTC](https://meta.discourse.org/t/why-are-some-wordpress-links-oneboxed-and-others-are-not/28778/5 "2015-05-13T17:52:40Z")

</div>

oneboxing is done by putting a URL directly on its own line.. works automagically with youtube videos, wikipedia etc.

I was assuming you are talking about something else, which is not oneboxing but the code to use discourse as a comment tool for a blog. If it’s the wp-discourse plugin you’re using then you can set that up in the wordpress dashboard. On my site it looks like this:

 ![](https://global.discourse-cdn.com/meta/original/3X/3/3/33751f8bc66e945d1e7d0d70d5fd157f2184edcc.png)

---

<div class="post-metadata">

**Author:** ![BCHK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bchk/32/3268_2.png) [@BCHK](https://meta.discourse.org/u/BCHK)\
**Post date:** [2015年五月13日 17:58 UTC](https://meta.discourse.org/t/why-are-some-wordpress-links-oneboxed-and-others-are-not/28778/6 "2015-05-13T17:58:55Z")

</div>

> [@tobiaseigen](#):
>
> oneboxing is done by putting a URL directly on its own line.. works automagically with youtube videos, wikipedia etc.

Yes - and what I want is for the oneboxing to be done on links to wordpress blogs too, and even better any web site.

A basic onebox for non-OpenGraph or oEmbed would be great. I’m not a software developer - but it seems like it shouldn’t be too hard to pull the first 200 words (to make a simple one-box) from the body text of a web page that anyone puts a link to in a forum post.

The wp-plugin is somewhat helpful - but I’d love to see something more broadly applicable.

---

<div class="post-metadata">

**Author:** ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)\
**Post date:** [2015年五月13日 17:59 UTC](https://meta.discourse.org/t/why-are-some-wordpress-links-oneboxed-and-others-are-not/28778/7 "2015-05-13T17:59:58Z")

</div>

not sure what you mean - oneboxing works beautifully.

---

<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:** [2015年五月13日 22:20 UTC](https://meta.discourse.org/t/why-are-some-wordpress-links-oneboxed-and-others-are-not/28778/8 "2015-05-13T22:20:13Z")

</div>

> [@BCHK](#):
>
> I have to believe that it would greatly improve Boing BOing’s conversations.
> 
> Does anyone really think that this is a helpful way to start a conversation?

That’s how BB wanted it. No excerpt, just a link. We added the Show Full Post button later and they were OK with that.

---

<div class="post-metadata">

**Author:** ![BCHK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bchk/32/3268_2.png) [@BCHK](https://meta.discourse.org/u/BCHK)\
**Post date:** [2015年五月13日 23:41 UTC](https://meta.discourse.org/t/why-are-some-wordpress-links-oneboxed-and-others-are-not/28778/9 "2015-05-13T23:41:16Z")

</div>

OK - so why is it that when I post links from my wordpress web site - I don’t get onebox (and it is even whitelisted in the onebox section)?

Strangely - Boing Boing works fine from a onebox standpoint on my forums but not my own wordpress blog entries.

---

<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:** [2015年五月13日 23:59 UTC](https://meta.discourse.org/t/why-are-some-wordpress-links-oneboxed-and-others-are-not/28778/10 "2015-05-13T23:59:54Z")

</div>

It depends on how the URLs are constructed. We have to guess based on the URL format, otherwise we would be forced to make http requests to every website to determine “is this Wordpress or not?”

Anyway, the excerpt is a setting in the plugin, that copies the first (n) chars out of the post and directly places that text in the corresponding topic.

---

<div class="post-metadata">

**Author:** ![AdamCapriola](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adamcapriola/32/5192_2.png) [@AdamCapriola](https://meta.discourse.org/u/AdamCapriola)\
**Post date:** [2015年五月14日 01:30 UTC](https://meta.discourse.org/t/why-are-some-wordpress-links-oneboxed-and-others-are-not/28778/11 "2015-05-14T01:30:15Z")

</div>

You might need a plugin to generate the meta data necessary in your theme’s `<head>`.

---

<div class="post-metadata">

**Author:** ![BCHK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bchk/32/3268_2.png) [@BCHK](https://meta.discourse.org/u/BCHK)\
**Post date:** [2015年五月14日 04:10 UTC](https://meta.discourse.org/t/why-are-some-wordpress-links-oneboxed-and-others-are-not/28778/12 "2015-05-14T04:10:01Z")

</div>

> [@codinghorror](#):
>
> It depends on how the URLs are constructed.

So - should I assume that I need “Title” based URLs rather than just numerical sequential URLs? That seems to be the difference between what I have and what Boing Boing is using.

---

<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:** [2015年五月14日 04:44 UTC](https://meta.discourse.org/t/why-are-some-wordpress-links-oneboxed-and-others-are-not/28778/13 "2015-05-14T04:44:13Z")

</div>

If you paste the links here side by side in a code block (indented 4 spaces) I can explain. It has to do with “typical” Wordpress URL schemes.

---

<div class="post-metadata">

**Author:** ![BCHK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bchk/32/3268_2.png) [@BCHK](https://meta.discourse.org/u/BCHK)\
**Post date:** [2015年五月14日 06:31 UTC](https://meta.discourse.org/t/why-are-some-wordpress-links-oneboxed-and-others-are-not/28778/14 "2015-05-14T06:31:08Z")

</div>

Sure,

My wp document URL: [http://mydomain.com/?p=640](http://mydomain.com/?p=640)

Doesn’t show up as a onebox.

THen Boing Boing:

```
http://boingboing.net/2015/05/13/how-to-buy-secret-cookies-bake.html

```

> **[How to buy secret cookies baked by cloistered Spanish nuns](https://boingboing.net/2015/05/13/how-to-buy-secret-cookies-bake.html)**
>
> When we heard about the semi-secret cookies baked by secluded nuns in Madrid, Spain, naturally we had to seek out these mythical treats. Here's what we found.

---

<div class="post-metadata">

**Author:** ![Tom\_Newsom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tom_newsom/32/115981_2.png) [@Tom\_Newsom](https://meta.discourse.org/u/Tom_Newsom)\
**Post date:** [2016年三月30日 09:36 UTC](https://meta.discourse.org/t/why-are-some-wordpress-links-oneboxed-and-others-are-not/28778/15 "2016-03-30T09:36:57Z")

</div>

Suggestion:

When creating a WP post topic, strip the `<iframe>` tags from youtube embeds, so that Discourse can onebox them.

---

<div class="post-metadata">

**Author:** ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)\
**Post date:** [2016年四月15日 18:40 UTC](https://meta.discourse.org/t/why-are-some-wordpress-links-oneboxed-and-others-are-not/28778/16 "2016-04-15T18:40:17Z")

</div>

Has anyone solved this? @AdamCapriola is there a way you can think of to make oneboxing work properly for Namati news/blog posts that just have URLs like the following:

`https://domain.com/news/category-name/a-short-title`  
`https://domain.com/resource/resource-title`  
`https://domain.com/stories/category-name/a-short-title`

If so perhaps we can contribute back the code here for the benefit of other wordpress people who don’t want to use the `domain.com/year/month/day/title` url syntax.

---

<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:** [2016年四月15日 19:13 UTC](https://meta.discourse.org/t/why-are-some-wordpress-links-oneboxed-and-others-are-not/28778/17 "2016-04-15T19:13:08Z")

</div>

Unlikely, those are very generic URLs that would force us to attempt oneboxing a huge swath of the web. Not desirable at the current time.

---

<div class="post-metadata">

**Author:** ![BCHK](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bchk/32/3268_2.png) [@BCHK](https://meta.discourse.org/u/BCHK)\
**Post date:** [2016年四月15日 19:50 UTC](https://meta.discourse.org/t/why-are-some-wordpress-links-oneboxed-and-others-are-not/28778/18 "2016-04-15T19:50:27Z")

</div>

> [@tobiaseigen](#):
>
> If so perhaps we can contribute back the code here for the benefit of other wordpress people who don’t want to use the [domain.com/year/month/day/title](http://domain.com/year/month/day/title) url syntax.

I’m using this format for my wordpress blog (/?p=740 ) - and unfortunately you can’t change it after you’ve started using it. Any chance this could be supported. Seems like one of the main options for Wordpress users. It would be nice if we could just “whitelist” certain domains that you know are either your domains or you know are wordpress domains - so can easily be oneboxed.

---

<div class="post-metadata">

**Author:** ![tophee](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tophee/32/73406_2.png) [@tophee](https://meta.discourse.org/u/tophee)\
**Post date:** [2017年三月29日 15:04 UTC](https://meta.discourse.org/t/why-are-some-wordpress-links-oneboxed-and-others-are-not/28778/19 "2017-03-29T15:04:34Z")

</div>

> [@tobiaseigen](#):
>
> On my site it looks like this

I can’t find this setting in WP-discourse version 1.3.4. WP-discourse has obviously evolved since this screenshot was taken, but I would like to believe that the possibility to customize the publish format in this way has not completely disappeared, right? So where how do I do this now?

I am asking this with this idea in mind:

[https://meta.discourse.org/t/wp-discourse-plugin-tips-and-tricks/50757/2](https://meta.discourse.org/t/wp-discourse-plugin-tips-and-tricks/50757/2)

---

<div class="post-metadata">

**Author:** ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)\
**Post date:** [2025年十二月4日 11:35 UTC](https://meta.discourse.org/t/why-are-some-wordpress-links-oneboxed-and-others-are-not/28778/20 "2025-12-04T11:35:55Z")

</div>


