On archive.php show loop for child categories if they exist or posts if they don’t, on custom post type
This works, anything better would be appreciated $term = get_queried_object(); $term_id = $term->term_id; $taxonomy_name = $term->taxonomy; $termchildren = get_term_children( $term_id, $taxonomy_name ); if (!empty($termchildren)) { echo ‘<div class=”subcatwrapper”>’; echo ‘<ul class=”workshopgrid centerWidth”>’; foreach ( $termchildren as $child ) { $term = get_term_by( ‘id’, $child, $taxonomy_name ); echo ‘<li class=”workshopbox”>’; echo ‘<div class=”workshopimage”><a href=”‘. get_term_link( $term->slug, … Read more