找到此代码并将其删除
1: 使用“\\u crosssell\\u ids”元键获取交叉销售产品的ID。
<?php
/* crossells */
$crosssell_ids = get_post_meta( get_the_ID(), \'_crosssell_ids\' );
$crosssell_ids=$crosssell_ids[0];
?>
通过id循环产品
if(count($crosssell_ids)>0){
$args = array( \'post_type\' => \'product\', \'posts_per_page\' => 10, \'post__in\' => $crosssell_ids );
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
?><a href=\'<?php the_permalink(); ?>\'><?php
the_post_thumbnail( \'thumbnail\' );
the_title();
?></a><?php
endwhile;
}