arkadaşlar kod bu:

add_filter( 'woocommerce_related_products', 'bbloomer_related_products_by_same_title', 9999, 3 ); 
 
function bbloomer_related_products_by_same_title( $related_posts, $product_id, $args ) {
   $product = wc_get_product( $product_id );
   $title = $product->get_name();
   $related_posts = get_posts( array(
      'post_type' => 'product',
      'post_status' => 'publish',
      'title' => $title,
      'fields' => 'ids',
      'posts_per_page' => -1,
      'exclude' => array( $product_id ),
   ));
   return $related_posts;
}
Bu koda eklemek istediğim; bildiğiniz üzere woocommerce de ürünler excluded-catalog, catalog, search edilebiliyor. Lakin ürünlerimin çoğu excluded-catalog durumunda, e böyle olunca gözükmüyorlar, buraya excluded-cataloglarında gözükmesini düzenleyecek ekstra bir kod istiyorum. ücretiyle yazarsanız, aciliyeti var.

Teşekkürler.