Added array_diff to post types function

Trying to exclude attachments fromt the post types list, but it's not working. :-(