我刚刚安装了全局自定义字段,如下所示http://digwp.com/2009/09/global-custom-fields-take-two/
基本上我在我的主题/主题名/functions.php上添加了这个:
<?php
//Custom Theme Settings
add_action('admin_menu', 'add_gcf_interface');
function add_gcf_interface() {
add_options_page('Global Custom Fields', 'Global Custom Fields', '8', 'functions', 'editglobalcustomfields');
}
function editglobalcustomfields() {
// the html form (too long to bother you with)
}
?>
现在,当我保存帖子时,我得到一个空白页。帖子确实被保存了。
你能以任何方式提供帮助吗?
我得到这两个错误
Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in/www/newBlogs/w.sandbox/wp-includes/functions.php on line 2722
Warning: Cannot modify header information - headers already sent by (output started at /www/newBlogs/w.sandbox/wp-content/themes/boilerplate/functions.php:548) in/www/newBlogs/w.sandbox/wp-includes/pluggable.php on line 881
谢谢