如何使用oEmbed在WordPress注释中添加视频和更多内容

Recently while browsing the WordPress plugin repository, we stumbled upon a pretty neat plugin that allows you to embed videos and more in WordPress comments by extending the oEmbed support. oEmbed in Comments plugin is created by Evan Solomon, a Growth Engineer at Automattic. For those of you who don’t know what oEmbed is, it allows you to easily embed videos, slides, and other services without dealing with the ugly embed codes. See our article on How to easily Embed videos in WordPress for more details.

最近,在浏览WordPress插件存储库时,我们偶然发现了一个非常简洁的插件,通过扩展oEmbed支持,您可以将视频和更多内容嵌入WordPress注释中。 oEmbed in Comments插件是由Automattic的增长工程师Evan Solomon创建的。 对于那些不知道oEmbed是什么的人,它使您可以轻松地嵌入视频,幻灯片和其他服务,而无需处理难看的嵌入代码。 有关更多详细信息,请参见我们的文章如何轻松地将视频嵌入WordPress

Let’s go ahead and install and activate this plugin. Once you have activated it, that’s it. There is no settings page for this plugin.

让我们继续安装并激活此插件。 一旦激活它,就是这样。 该插件没有设置页面。

Go to your comments and paste a Youtube Video URL. It will automatically embed that video. Check out the screenshot below:

转到您的评论并粘贴YouTube视频URL。 它将自动嵌入该视频。 查看以下屏幕截图:

oEmbed in Comments Screenshot

One of the biggest issue we noticed with this plugin is that it has no way to resize the videos. You are forced to use the same video width that you have in your post content. This can be an issue because most comment content areas are smaller than post content box. Secondly, if you have threaded comments, then there is an extra indentation that you have to account for. Aside from this, it seems like a pretty useful plugin for video bloggers. Because you can now have youtube style video responses on your own site.

我们注意到此插件的最大问题之一是它无法调整视频大小。 您必须使用与帖子内容相同的视频宽度。 这可能是一个问题,因为大多数评论内容区域都小于帖子内容框。 其次,如果您已注释了注释,则必须考虑一个额外的缩进。 除此之外,对于视频博主来说,它似乎是一个非常有用的插件。 因为您现在可以在自己的网站上获得YouTube风格的视频回复。

Download oEmbed in Comments

下载嵌入评论

翻译自: https://www.wpbeginner.com/plugins/how-to-add-videos-and-more-in-wordpress-comments-with-oembed/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值