WordPress Custom Fields Won’t Save
It seems you have one error in your code… if($id == $author_id){ $selected = ‘ selected=”selected”‘; } It should be $building_id instead of $author_id. I tested the rest of the code and the saving is working fine. If you had printed/echoed out the value of this line … $building_id = get_post_meta($post->ID, ‘p2p2_building’, true); like print_r($building_id);, … Read more