Hi @danicasati
you can’t use the [products] shortcode of WooCommerce in text editor because it’s not possible to use it with a custom taxonomy.
The only solution is to use a snippet of code like this:
$vendor = yith_get_vendor( $sc_args['vendor_id'], 'vendor' );
ob_start();
if ( $vendor->is_valid() ) {
$products = $vendor->get_products();
if ( ! empty( $products ) ) {
$extra_args = '';
foreach ( $sc_args as $sc_att => $sc_value ) {
$extra_args .= sprintf( ' %s="%s"', $sc_att, $sc_value );
}
$shortcode = sprintf( '[products ids="%s"%s]', implode( ',', $products ), $extra_args );
echo do_shortcode( $shortcode );
}
}
echo ob_get_clean();
Try this solution and let use know, please.