<?php
    /*//categorie enfant de circulaire
    $categories = get_categories( array(
        'orderby' => 'name',
        'order'   => 'ASC',
        'parent'  => 5,
    ) );

    foreach ($categories as $row) {
        $category_id = $row->term_id;
        $nom_categorie = $row->name;
        $category_link = get_category_link($category_id);

        echo '<div class="wp-block-button is-style-fill has-white-color has-text-color has-background no-border-radius btn-categories">
            <h2><a class="wp-block-button__link" href="'.$category_link.'">'.$nom_categorie.'</a></h2>
        </div>';
    }*/

    $categories = array();
    $cat_ids = array(6,8,9,12,11,13,17,15,10,14,18,16);

    foreach($cat_ids as $id){
        $categories[] = get_category($id);
    }

    foreach ($categories as $row) {
        $category_id = $row->term_id;
        $nom_categorie = $row->name;
        $category_link = get_category_link($category_id);

        echo '<div class="wp-block-button is-style-fill has-white-color has-text-color has-background no-border-radius btn-categories">
            <h2><a class="wp-block-button__link" href="'.$category_link.'">'.$nom_categorie.'</a></h2>
        </div>';
    }
?>
<?php get_search_form(); ?>