how to set default value for checkbox in wordpress
I think the problem might could be the logic with using checked… <input type=”checkbox” name=”aps_display_post_title” value=”yes” <?php if ($aps_display_post_title != ‘no’) {echo ‘checked’;} ?> /> …on the other hand then running sanitize_text_field on the checkbox value might also be causing the problem. Instead you might want to break the logic down differently so it is … Read more