1

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" => " "しかし機能しませんでした。ありがとう!

4

0 に答える 0