'page', 'page_id' => absint( $page_id ), 'posts_per_page' => 1, ); // Run The Loop. $query = new WP_Query( $args ); if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); $page_post['title'] = get_the_title(); $page_post['excerpt'] = get_the_content(); // Push to the main array. array_push( $content, $page_post ); endwhile; endif; wp_reset_postdata(); if ( ! empty( $content ) ) $input = $content; return $input; } endif; // hero_content section content details. add_filter( 'fabulist_filter_hero_content_section_details', 'fabulist_get_hero_content_section_details' ); if ( ! function_exists( 'fabulist_render_hero_content_section' ) ) : /** * Start hero_content section * * @return string hero_content content * @since Fabulist 1.0.0 * */ function fabulist_render_hero_content_section( $content_details = array() ) { if ( empty( $content_details ) ) return; foreach ( $content_details as $content ) : ?>