finished nav menu optimization by using single query in get_terms_by_post_type function