Wordpress: get posts and group by taxonomy terms.