Wordpress 插件:插件短代码不显示在仅小部件页面中
我有一个插件问题,短代码不显示在小部件(过滤器启用) 在正常页面中使用[wpcuponninja style=“vertical”] 代码如下:Wordpress 插件:插件短代码不显示在仅小部件页面中,wordpress,plugins,widget,Wordpress,Plugins,Widget,我有一个插件问题,短代码不显示在小部件(过滤器启用) 在正常页面中使用[wpcuponninja style=“vertical”] 代码如下: function the_content($content){ if(!preg_match('@\[wpcouponninja\s?(?:style=")?(.*?)(?:"?)\]@',$content,$m)) return $content; if( !is_page() &&a
function the_content($content){
if(!preg_match('@\[wpcouponninja\s?(?:style=")?(.*?)(?:"?)\]@',$content,$m))
return $content;
if( !is_page() && !is_single() )
return str_replace($m[0],'',$content);
如何在我的小部件中调用这个“旧”插件?请告知,谢谢!请看这个: