Metabox of one post influence setting on other
The problem here is a slight error in the origianl code. Near the bottom of the save_sticky_metabox() callback, change the line – if(isset($_POST[‘was_checked’])) : To this – if($_POST[‘was_checked’] != 0) : The was_checked value is derived from a hidden field, not a checkbox, so regardless of the value it will always be set. Therefore we … Read more