I have a checkbox, whose default state is unchecked:
<?php
function edit_theme_settings() {
if ( get_option('sold_text') == true ) { $display = 'checked'; }
else { $display = ''; }
update_option( 'sold_text', $display );
?>
<input type="checkbox" name="sold_text" id="sold_text" <?php echo get_option('sold_text'); ?> />
I'd like its default status to be unchecked the first time the form is displayed, subsequently its 'checked' status should be defined by get_option('sold_text').