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

PHP数组复选框和无线电默认值,php,wordpress,checkbox,radio,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" => "chec

我的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"      
    ),
数组(
“名称”=>“发布缩略图”,
“desc”=>“选择是否要显示后期缩略图。”,
“id”=>$shortname.“\u post\u thumbs”,
“键入”=>“复选框”,
“std”=>“已选中”
),  
排列(
“名称”=>“示例”,
“描述”=>“描述”,
“id”=>$shortname.“\u case\u thumb”,
“键入”=>“收音机”,
“选项”=>array(“nothumb”=>“不显示任何内容”、“defmumb”=>“显示缩略图”),
“std”=>“nothumb”
),

对于复选框,也尝试了
“std”=>“true”
“std”=>“
。。。但是没有起作用。谢谢

仅在“std”=>“checked”处添加选中项您能告诉我们您在其中使用的上下文吗?比如某个特定的Wordpress主题?或者使用一个特定的框架?Chacha102我在wordpress选项页中使用这个。你不能像在html中一样使用checked=>“checked”吗?在快速浏览中,我找不到任何与“选项页”相关的函数,它采用了你在这里给出的数组类型。您是否可以澄清将这些数组传递给哪个函数,因为数组本身对PHP没有任何意义,只对该函数有意义。