关于WordPress2.2与K2主题兼容性问题的解决方法
其实在K2的首页上写得非常明白了. 不过在这里再宣传一下也没什么坏处, 毕竟不是人人都看得懂或喜欢看E文的.
废话不说, 看下文:
/*
Plugin Name: Disable WordPress Widgets
Plugin URI: http://schulte.mn/
Description: This plugin overrides WordPress Widgets and will allow K2 Sidebar Modules to function.
Author: Darrell Schulte
Version: 1.0
Author URI: http://schulte.mn/
*/
remove_action(’plugins_loaded’, ‘wp_maybe_load_widgets’, 0 );
?>
把这段代码复制下来并另存为php文件, 然后像其他插件那样上传到/wp-content/plugins/文件夹下激活就可以了, 原理很简单, 起作用的唯一一行代码的功能就是把WordPress2.2自带的Widgets插件禁用. [via]