PHP数组复选框和无线电默认值

时间:2012-06-09 22:30:39

标签: php wordpress checkbox radio

我的wordpress选项页面中有以下代码。我无法定义复选框和广播的默认值。

array(
    "name" => "Post Thumbnails",
    "desc" => "Choose if you want to display <strong>post thumbnails</strong> or not.",
    "id" => $shortname."_post_thumbs",
    "type" => "checkbox",
    "std" => "checked"      
),  

array(
        "name" => "Example",
        "desc" => " The Descriptions",
        "id" => $shortname."_case_thumb",
        "type" => "radio",
        "options" => array("nothumb" => " Display nothing", "defthumb" => " Display thumbnail"),
        "std" => "nothumb"      
    ),

对于复选框也尝试了"std" => "true""std" => " " ...但是没有用。谢谢!

0 个答案:

没有答案