From http://stackoverflow.com/questions/11953081/selecting-from-a-custom-post-type-on-the-post-edit-page