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
1 Answer
Reset to default 0WordPress 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
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745346270a4623558.html
评论列表(0条)