【问题标题】:Wordpress theme options not saving optionsWordpress 主题选项不保存选项
【发布时间】:2012-08-13 08:27:00
【问题描述】:

我目前正在构建一个带有主题选项页面的 Wordpress 主题。我使用原始的 Wordpress 主题(二十十二)作为基础,并在我进行的过程中进行了调整和添加。我遇到的问题是该页面似乎确实保存了我的默认设置,但是当我在表单中更改它们并点击保存按钮时,它仍然只调出默认设置。

这是我的 theme-options.php,right here,包含在我的 functions.php 中。

【问题讨论】:

    标签: php wordpress wordpress-theming options


    【解决方案1】:

    你的命名不一致,把你的options数组里的fatum_box_one改成eerste_box等,把你的textareas的名字从fatum_box_one[eerste_box]改成fatum_theme_options[eerste_box]等..

    【讨论】:

    • 啊,我知道这与命名有关,但我不能指望它。谢谢!
    猜你喜欢
    • 2014-08-02
    • 2012-11-10
    • 1970-01-01
    • 2011-07-09
    • 1970-01-01
    • 2013-08-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多