bugfix: addPosts did not switch post-type, copied from meta-box