2017-09-13 58 views
0
global $wp_embed; 
print_r($wp_embed->run_shortcode('[embed]https://twitter.com/minnna_sokuho/status/907222559006920704[/embed]')); 

這是我的代碼。

我預期如下結果,

<div class="embed"><blockquote class="twitter-tweet" data-width="550"><p lang="ja" dir="ltr">New post (斉藤由貴(51)とかいう不倫しても可愛いから許されるおばさんwwww) has been published on 博士の速報2 - <a href="https://blahblah/HEigtcb8Dz">https://blahblah/HEigtcb8Dz</a> <a href="https://blahblah/zR6hEJfitQ">pic.twitter.com/zR6hEJfitQ</a></p>&mdash; みんなの速報 (@minnna_sokuho) <a href="https://twitter.com/minnna_sokuho/status/907222559006920704">September 11, 2017</a></blockquote><script async="" src="//platform.twitter.com/widgets.js" charset="utf-8"></script><</div> 

但是,沒有<script...></script>

我想有些過濾器或掛鉤會對結果進行混淆,但是我沒有找到它是什麼。

我該如何解決?

回答

0

那是其他插件的副作用(Autouptimizer)

相關問題