Post loop for all taxonomy terms

You can get all the terms in a custom taxonomy using the following code: $terms = get_terms( ‘development-category’ ); if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){ foreach ( $terms as $term ) { $loop = new WP_Query( array( ‘development-category’ => $term->slug, ‘post_type’ => ‘developments’ ) ); ?> …. } }