'page', 'post__in' => $bizlight_home_about_posts_ids, 'posts_per_page' => 3, 'orderby' => 'post__in' ); } } // the query if( !empty( $bizlight_home_about_args )){ $bizlight_home_about_contents_array = array(); $bizlight_home_about_post_query = new WP_Query($bizlight_home_about_args); if ($bizlight_home_about_post_query->have_posts()) : $i = 0; while ($bizlight_home_about_post_query->have_posts()) : $bizlight_home_about_post_query->the_post(); $bizlight_home_about_contents_array[$i]['bizlight-home-about-title'] = get_the_title(); $bizlight_home_about_contents_array[$i]['bizlight-home-about-content'] = bizlight_words_count( 30 ,get_the_content()); $bizlight_home_about_contents_array[$i]['bizlight-home-about-link'] = get_permalink(); if(isset( $bizlight_icons_arrays[$i] )){ $bizlight_home_about_contents_array[$i]['bizlight-home-about-icon'] = $bizlight_icons_arrays[$i]; } else{ $bizlight_home_about_contents_array[$i]['bizlight-home-about-icon'] = 'fa-desktop'; } $i++; endwhile; wp_reset_postdata(); endif; } return $bizlight_home_about_contents_array; } endif; if (!function_exists('bizlight_home_about')) : /** * Featured Slider * * @since Bizlight 1.0.0 * * @param null * @return null * */ function bizlight_home_about() { global $bizlight_customizer_all_values; if (1 != $bizlight_customizer_all_values['bizlight-home-about-enable']) { return null; } $bizlight_about_arrays = bizlight_home_about_array(); if (is_array($bizlight_about_arrays)) { $bizlight_home_about_title = $bizlight_customizer_all_values['bizlight-home-about-title']; $bizlight_home_about_content = $bizlight_customizer_all_values['bizlight-home-about-content']; $bizlight_home_about_right_image = $bizlight_customizer_all_values['bizlight-home-about-right-image']; ?>