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

Just a small bugfix, brings the two classes closer together