最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Why most embed feature doesn't work?

programmeradmin2浏览0评论

Someone tried to embed this

In my friends' site here

It fails.

Some links can be embeded though

This link seems to work fine

/

Why some links can be embeded and others cannot?

Someone tried to embed this

https://9gag/gag/axzLxBK

In my friends' site here

It fails.

Some links can be embeded though

This link seems to work fine

https://www.unilad.co.uk/technology/app-that-can-undress-women-has-been-taken-offline/

Why some links can be embeded and others cannot?

Share Improve this question asked Jul 3, 2019 at 17:18 user4951user4951 1572 gold badges3 silver badges9 bronze badges 3
  • This isn't an answer, but these are powered by OEmbed, that's the mechanism behind it – Tom J Nowell Commented Jul 3, 2019 at 17:30
  • What is oembed? – user4951 Commented Jul 4, 2019 at 0:58
  • wordpress/support/article/embeds – Jacob Peattie Commented Jul 4, 2019 at 8:38
Add a comment  | 

1 Answer 1

Reset to default 0

WordPress relies on the open standard for embedding called OEmbed. This is what makes Youtube URLs turn into video players when copy pasted into a post, etc

By default WordPress only supports a predefined list of OEmbed providers, so it knows how to ask Youtube or Vimeo for an embed snippet, but 9gag isn't in that list.

On further investigation, it doesn't appear that 9gag has an oembed provider. I ran the 9gag URL through an OEmbed tester at https://oembed.frdnspnzr.de/ and it could not find any means of using OEmbed.

If 9gag did support OEmbed ( which it doesn't ), it could be added via a plugin using the API calls, telling WP what a 9gag URL looks like and where to go for the snippet

发布评论

评论列表(0)

  1. 暂无评论