Hello,
Thank you for the swatch filter, it’s perfect.
For the acf field, I created 3 fields : https://prnt.sc/5jC2qtYsXPzs, to display on taxonomy product_cat (one title, one subtitle, one image).
The desired outcome is to display them with the secondary description, after the products : https://prnt.sc/xfpL0riJJxB3
I tried removing my hooks as you suggested (https://prnt.sc/PFUmNnaFYyS8) but it doesn’t affect the secondary description, only my top page.
I wanted to edit the function etheme_second_cat_desc() to add my acf in the div :
/* Modification description basse produits */
if ( ! function_exists( 'etheme_second_cat_desc' ) ) {
function etheme_second_cat_desc() {
global $wp_query;
$cat = $wp_query->get_queried_object();
/* My ACF */
$titre_bas = get_field('titre');
$sous_titre = get_field('sous-titre');
$img_bas = get_field('image_sous_produits');
if ( property_exists( $cat, 'term_id' ) && ! is_search() ) {
$desc = get_term_meta( $cat->term_id, '_et_second_description', true );
} else {
return;
}
if ( ! empty( $desc ) ) {
echo '<div class="bloc_bas"><div class="term-description et_second-description test">' . $titre_bas . $sous_titre . do_shortcode( $desc ) . '</div><div class="banner-bas" style="background-image: url('.$img_bas.');"></div></div>';
}
}
}
It seems like the acf are not passed through product_cat, and I haven’t faced that issue before, with the previous themes we used…
Thank you for the much appreciated help !
Kind regards