我知道WordPress有oEmbed功能。但是,要嵌入的内容必须在它自己的行上,如下所示:
Lorem Ipsum
http://www.youtube.com/link/to/content
More Lorem Ipsum不幸的是,我的标记看起来是这样的,所以oEmbed不能工作,我不得不使用插件。
<ul>
<li>http://www.youtube.com/link/to/content</li>
<li>http://www.youtube.com/link/to/content</li>
</ul>没有这个插件,我可以让oEmbed工作吗?在functions.php中使用一两行将比这个插件更好。
发布于 2013-05-15 20:24:43
只需在项目周围使用[embed]短代码即可。
<ul>
<li>[embed]http://www.youtube.com/link/to/content[/embed]</li>
...https://wordpress.stackexchange.com/questions/99593
复制相似问题