…) ) { return; } global $post; if ( get_search_query() ) { $args = array( ‘post_type’ => ‘post‘, ‘s’ => get_search_query(), ‘relevanssi’ => true, ); $query = new WP_Query( $args ); $posts = array(); while ( $query->have_posts() ) { $query->the_post(); array_push( $posts, $post->ID ); } $args = array( ‘post_type’ =>……wc_get_page_id( $wc_page_type ) ) { $wc_page = true; } } } if ( ! $wc_page ) { array_push( $pages, $post->ID ); } } do_action( ‘flatsome_products_page_loader’ ); if ( ! empty( $posts ) || ! empty( $pages ) ) { $list_type = get_theme_mod( ‘search_result_style’, ‘slider’ ); if ( ! empty( $posts……) ) { echo ‘<hr><h4 class=”uppercase”>’ . __( ‘Posts found’, ‘flatsome’ ) . ‘</h4> ‘ . do_shortcode( ‘[blog_posts columns=”3″ columns__md=”3″ columns__sm=”2″ type=”‘ . $list_type . ‘” image_height=”16-9″ ids=”‘ . implode( ‘,’, $posts ) . ‘”]’ ); } if ( ! empty( $pages ) ) { echo ‘<hr><h4 class=”uppercase”>’ . __(…