Replies: 0
Hi, I am trying to get the search to pull/index information from 2 separate ACF Custom Fields that each contains Tablepress shortcode. I am using the following code to pull from 1 of the ACF Fields, but can’t figure out how to get it to also pull from the 2nd ACF Field. It seems to be right now a one or the other.
add_filter( 'relevanssi_content_to_index', 'rlv_add_shortcodes', 10, 2 );
function rlv_add_shortcodes( $content, $post ) {
$field_content = get_field( 'field', $post->ID );
return $content .= ' ' . $field_content;
}
Thank you in advance