保存帖子后(为安装全局自定义字段后)为什么会在wordpress上显示空白页面

时间:2012-10-31 03:21:30

标签: wordpress

我刚刚安装了全局自定义字段,如此处http://digwp.com/2009/09/global-custom-fields-take-two/

所示

基本上我在主题/ themename / 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

由于

0 个答案:

没有答案