'page', 'post__in' => ( array ) $page_ids, 'posts_per_page' => absint( 1 ), 'orderby' => 'post__in', ); // Run The Loop. $query = new WP_Query( $args ); if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); $page_post['id'] = get_the_id(); $page_post['title'] = get_the_title(); // Push to the main array. array_push( $content, $page_post ); endwhile; endif; wp_reset_postdata(); if ( ! empty( $content ) ) { $input = $content; } return $input; } endif; // slider section content details. add_filter( 'blogood_filter_hero_banner_section_details', 'blogood_get_hero_banner_section_details' ); if ( ! function_exists( 'blogood_render_hero_banner_section' ) ) : /** * Start slider section * * @return string slider content * @since Blogood 1.0.0 * */ function blogood_render_hero_banner_section( $content_details = array() ) { $options = blogood_get_theme_options(); if ( empty( $content_details ) ) { return; } $first_posts = array_shift($content_details); ?>