• Hi Mikko, have a good day.

    Is there a way to also index the variant description field?

    • This topic was modified 2 years, 5 months ago by sergio79.
Viewing 1 replies (of 1 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Sure, why not. If you have the variation SKU indexing function, just toss in the post excerpt from the variation:

    foreach ( $variations as $variation ) {
    	$sku      = get_post_meta( $variation->ID, '_sku', true );
    	$content .= " $sku $variation->post_excerpt";
    }
Viewing 1 replies (of 1 total)

The topic ‘Index Variant description’ is closed to new replies.