Hi there,
you could create your own shortcode function with this PHP Snippet:
function list_subcategories_shortcode() {
$categories = get_categories( array(
'child_of' => get_queried_object_id(),
'hide_empty' => false
) );
if ( ! empty( $categories ) ) {
$output = '<ul class="subcategory-list">';
foreach ( $categories as $category ) {
$output .= '<li><a href="' . get_category_link( $category->term_id ) . '">' . $category->name . '</a></li>';
}
$output .= '</ul>';
return $output;
}
return '';
}
add_shortcode( 'list_subcategories', 'list_subcategories_shortcode' );
Then use a Block Element to add your [list_subcategories] shortcode to your archive pages.
It would need some to style.
Let me know.