Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在一个 wordpress 网站上工作,我下载了一个名为流视频播放器的插件,它有一个简码。如果我将短代码放入内容编辑器,它可以正常工作并显示视频,但是如果在我正在创建的模板中,我通过“do_shortcode”函数调用它,它不起作用,它只显示文本 [流bla bla]。谁能帮助我并告诉我为什么会这样?
我得到了以下答复,并且有效!
它不是真正的简码,它是一个内容过滤器,但您可以尝试直接调用插件的功能
if( function_exists('StreamVideo_Parse_content') ) { echo StreamVideo_Parse_content("[stream bla bla /]"); }