true, 'orderby' => 'post__in', 'post_type' => 'page', 'post__in' => $ids, ); $posts = get_posts( $args ); if ( ! empty( $posts ) ) { $i = 1; foreach ( $posts as $key => $post ) { $post_id = $post->ID; $img_array = null; if ( has_post_thumbnail( $post_id ) ) { $img_array = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'business-park-team' ); } else { $img_array = business_park_dummy_image( 1920, 1080 ); } if ( isset( $img_array ) ) { $content[$i]['img_array'] = $img_array; } $content[$i]['url'] = get_permalink( $post_id ); $content[$i]['title'] = get_the_title( $post_id ); if ( isset( $options[ 'team_position_'.$i ] ) ) { $content[$i]['position'] = $options[ 'team_position_'.$i]; } $i++; } } break; default: break; } if ( ! empty( $content ) ) { $input = $content; } return $input; } endif; // Team section content details. add_filter( 'business_park_filter_team_section_details', 'business_park_get_team_section_details' ); if ( ! function_exists( 'business_park_render_team_section' ) ) : /** * Start section id .about * * @return string about content * @since Business Park 1.1.5 * */ function business_park_render_team_section( $content_details = array() ) { $options = business_park_get_theme_options(); if ( empty( $content_details ) ) { return; } ?>