Title: Index Variant description
Last modified: October 20, 2023

---

# Index Variant description

 *  [sergio79](https://wordpress.org/support/users/sergio79/)
 * (@sergio79)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/index-variant-description/)
 * Hi Mikko, have a good day.
 * Is there a way to also index the variant description field?
    -  This topic was modified 2 years, 7 months ago by [sergio79](https://wordpress.org/support/users/sergio79/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/index-variant-description/#post-17140070)
 * Sure, why not. If you have the variation SKU indexing function, just toss in 
   the post excerpt from the variation:
 *     ```wp-block-code
       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.

 * ![](https://ps.w.org/relevanssi/assets/icon-256x256.png?rev=3529670)
 * [Relevanssi - A Better Search](https://wordpress.org/plugins/relevanssi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/relevanssi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/relevanssi/)
 * [Active Topics](https://wordpress.org/support/plugin/relevanssi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/relevanssi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/relevanssi/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/index-variant-description/#post-17140070)
 * Status: not resolved