'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['url'] = get_the_permalink(); // 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( 'blite_filter_hero_content_section_details', 'blite_get_hero_content_section_details' ); if ( ! function_exists( 'blite_render_hero_content_section' ) ) : /** * Start hero_content section * * @return string hero_content content * @since Blite 1.0.0 * */ function blite_render_hero_content_section( $content_details = array() ) { $hero_content_alignment = blite_theme_option( 'hero_content_alignment','align-center' ); if ( empty( $content_details ) ) return; foreach ( $content_details as $content ) : ?>