Problems with a custom meta_box
You are not including any previously set values in the input field. $value = get_post_meta($post_id->ID,’event-link’,true); <input type=”text” style=”padding:10px;” value=”‘.$value.'” name=”event-link”/> Note that the meta box callback get a post object not just an ID. Additionally, you are not saving your fields at all. Instead you are saving either 1 or 0. If you want to … Read more