Checked() showing up twice in custom fields
checked() will echo the result by default. That’s the problem. To concat, you need to disable echo functionality by specify third param to false: echo ‘<input type=”checkbox” id=”my_meta_box_check1″ name=”my_meta_box_check1″ ‘ . checked( $check, “on”, false ) . ‘/>’;