check for post post_type