我只想知道如何在wordpress主题的模板文件中创建复选框并将其值保存在postmeta表中。这就是我创建复选框的方式,如常规html 这是我的复选框代码
<p class="full_form"><label for="prop_category"><?php _e('We are into','wpestate');?></label>
<input type="checkbox" id="architecture" size="80" name="ckb" value="<?php print
$architecture;?>">Architecture
<input type="checkbox" id="builder_developer" size="80" name="ckb" value="<?php print
$builder_developer;?>">Builders and Developeres
<input type="checkbox" id="material_supplier" size="80" name="ckb" value="<?php print
$material_supplier;?>">Material Supplier
<input type="checkbox" id="contractor" size="80" name="ckb" value="<?php print
$contractor;?>">Contractor
<input type="checkbox" id="int_decorator" size="80" name="ckb" value="<?php print
$int_decorator;?>">Interior Decorator
<input type="checkbox" id="prop_finance" size="80" name="ckb" value="<?php print
$prop_finance;?>">Property Finance
<input type="checkbox" id="prop_legal_ad" size="80" name="ckb" value="<?php print
$prop_legal_ad;?>">Property Legal Advisor
<input type="checkbox" id="prop_valuer" size="80" name="ckb" value="<?php print
$prop_valuer;?>">Property Valuer
<input type="checkbox" id="vastu_consult" size="80" name="ckb" value="<?php print
$vastu_consult;?>">Vaastu Consultant
</p>