Properly format post_type stuff for ES