• Resolved vchoo

    (@vchoo)


    Hi,

    No tablepress are being indexed, I’m putting the tablepress shortcodes within Advanced Custom Field’s WYSIWYG field type in Woocommerce products post type.

    Need help with making the table cell values be indexed, thank you!

    • This topic was modified 1 year, 10 months ago by vchoo.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Relevanssi, by default, only indexes shortcode content from the post content. Here’s how you can make Relevanssi expand shortcodes in custom fields:

    add_filter( 'relevanssi_custom_field_value', 'rlv_expand_shortcodes_in_fields' );
    function rlv_expand_shortcodes_in_fields( $values ) {
      $new_values = array();
      foreach ( $values as $value ) {
        $new_values[] = do_shortcode( $value );
      }
      return $new_values;
    }

    Add this to your theme functions.php and rebuild the index.

    Thread Starter vchoo

    (@vchoo)

    This worked, thank you so much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘TablePress in ACF Field not being indexed’ is closed to new replies.