'page', 'post__in' => $about_us_page_id, 'order_by' => 'post__in', 'order' => 'ASC' ); } } /*query start */ if( !empty( $about_us_args ) ){ $about_us_query_args = new WP_Query( $about_us_args ); if( $about_us_query_args->have_posts() ) : $i = 1; while( $about_us_query_args->have_posts() ) : $about_us_query_args->the_post(); $thumb_img = ''; if( has_post_thumbnail() ){ $post_image = wp_get_attachment_image_src(get_post_thumbnail_id( get_the_ID() )); $thumb_img = $post_image[0]; } $about_us_array[] = array( 'about-us-title' => get_the_title(), 'about-us-content' => bizcare_words_count( $bizcare_about_us_single_word_right, get_the_content() ), 'about-us-image' => esc_url( $thumb_img ), 'about-us-link' => esc_url( get_the_permalink() ), 'about-us-right-icons-ids' => isset( $about_us_page_icon[$i]['about-us-right-icons-ids'] ) ? $about_us_page_icon[$i]['about-us-right-icons-ids'] : 'fa-apple' ); $i++; endwhile; wp_reset_postdata(); endif; } return $about_us_array; } endif; if( !function_exists( 'bizcare_about_us_section' ) ): /** * * @since Bizcare 1.0.0 * * @param null * @return null * */ function bizcare_about_us_section(){ global $bizcare_customizer_all_values; if( 1 != $bizcare_customizer_all_values['bizcare-enable-about-us'] ){ return null; } $bizcare_about_us = bizcare_about_us_section_array(); $bizcare_about_us_title = $bizcare_customizer_all_values['bizcare-about-us-title']; $bizcare_about_us_single_word_left = $bizcare_customizer_all_values['bizcare-excerpt-length-left']; $bizcare_about_us_button_text = $bizcare_customizer_all_values['bizcare-about-us-button-text']; $about_us_left_page = $bizcare_customizer_all_values['bizcare-about-us-select-page']; ?> 0 || !empty($about_us_left_page ) ) { ?>

0 ) { ?>
'page', 'p' => $about_us_left_page, 'ignore_sticky_posts' => 1 ); /*query start*/ $left_page_query_args = new WP_Query( $about_us_left_page_args ); if( $left_page_query_args->have_posts() ) : while( $left_page_query_args->have_posts() ) : $left_page_query_args->the_post(); $left_img = ''; if( has_post_thumbnail() ){ $imageUrl = wp_get_attachment_image_src(get_post_thumbnail_id( get_the_ID() ),'full'); $left_img = $imageUrl[0]; } ?>