How to display list of custom post taxonomy terms and their posts (if any)?
As per the docs: https://developer.wordpress.org/reference/functions/get_terms/ the way to get terms has changed in WP 4.5. It’s always good to keep the new way of dev. Thats said, this code seems to work on my side: $taxonomy = ‘city’; $args = array( ‘taxonomy’ => $taxonomy, ‘orderby’ => ‘count’, ‘order’ => ‘DESC’, ); $taxonomy_terms = get_terms( $args … Read more