How can I concatenate variables to search results title? [closed]
Please try to use following code add_filter( ‘aws_title_search_result’, ‘my_aws_title_search_result’, 10, 3 ); function my_aws_title_search_result( $title, $post_id, $product ) { $text1 = get_post_meta( $post_id, ‘_tyre_size_field’, true ); $text2 = get_post_meta( $post_id, ‘_load_speed_field’, true ); $text3 = get_post_meta( $post_id, ‘_tyre_brand_field’, true ); $text4 = get_post_meta( $post_id, ‘_brand_model_field’, true ); $text5 = get_post_meta( $post_id, ‘_run_flat_field’, true ); if … Read more