Notes

Add shortcode to list specific categorie

https://generatepress.com/forums/topic/display-a-list-of-sub-categories/

add this code inside your functions.php file

function display_subcategories( $atts ) {

    $atts = shortcode_atts( array(
        'category' => null
    ), $atts );

    $parent_cat_slug = get_category_by_slug( $atts['category'] );
    $parent_cat_ID = $parent_cat_slug->term_id;

    $args = array(
        'hierarchical' => 1,
        'hide_empty' => 0,
        'parent' => $parent_cat_ID,
        'taxonomy' => 'category'
    );
    $subcats = get_categories($args);
    ob_start();
    echo '<ul class="sub-categories">';
    foreach ($subcats as $subcat) {
        $link = get_term_link( $subcat->slug, $subcat->taxonomy );
        echo '<li><a href="' . $link . '">' . $subcat->name . '</a></li>';
    }
    echo '</ul>';

    return ob_get_clean();
}
add_shortcode( 'subcategory', 'display_subcategories' );

Then add shortcode whereever you want

[subcategory category="category-slug"]

Categories tuto admin

https://devotepress.com/tutorials-hacks/display-category-description-wordpress/

https://www.markhendriksen.com/can-you-add-php-code-to-the-divi-code-module/#:~:text=Add%20PHP%20Code%20In%20The%20Functions.&text=this%20file%20is%20usually%20located,php.

add_shortcode('cat_desc', 'cat_desc_shortcode');
function cat_desc_shortcode() {
    
    global $wp_query;
    $cat = $wp_query->get_queried_object();
    
    if( $cat == null ) return;

    $output = nl2br($cat->description);
    return $output;
}

Then use the shortcode [cat_desc] in your layout, where you would like the category description to appear. This at least works for me.

https://stackoverflow.com/questions/67588319/how-to-display-woocommerce-category-description-with-divi-theme