'; } } add_action( 'wp_head', 'bcorporate_pingback_header' ); /*************************************************** bcorporate custom fucntions ****************************************************/ /* ================================================= Homepage Aboutus Section Function @Action: bcorporate_home_about_sec ================================================= */ if ( ! function_exists( 'bcorporate_home_about_sec_fnc' ) ) : function bcorporate_home_about_sec_fnc() { if( get_theme_mod( 'home_page_about_enable', '1' ) ): // check if about section is enabled ?> absint( $bcorporate_featured_id ) , 'posts_per_page' => 5 ) ); while ( $bcorporate_feature_query->have_posts() ) : $bcorporate_feature_query->the_post(); ?> absint( $bcorporate_portfolio_id ) , 'posts_per_page' => -1 ) ); $bcorporate_portfolio_aos_delay = 0; while ( $bcorporate_portfolio_query->have_posts() ) : $bcorporate_portfolio_query->the_post(); ?> absint( $bcorporate_services_id ) , 'posts_per_page' => -1 ) ); $bcorporate_services_two_aos_delay = 0; while ( $bcorporate_services_query -> have_posts() ) : $bcorporate_services_query -> the_post(); ?> absint( $bcorporate_blog_id ) , 'posts_per_page' => -1 ) ); while ( $bcorporate_blog_query -> have_posts() ) : $bcorporate_blog_query -> the_post(); ?> | absint( $bcorporate_testimonial_id ) , 'posts_per_page' => -1 ) ); $bcorporate_testimonial_aos_delay = 0; while ( $bcorporate_testimonial_query -> have_posts() ) : $bcorporate_testimonial_query -> the_post(); ?> '; echo '' . esc_html__( 'Home', 'bcorporate' ) . ''; $args = array( 'posts_per_page' => 5, 'post_type' => 'page', 'orderby' => 'name', 'order' => 'ASC', ); $the_query = new WP_Query( $args ); if ( $the_query->have_posts() ) { while ( $the_query->have_posts() ) { $the_query->the_post(); the_title( '', '' ); } wp_reset_postdata(); } echo ''; } endif;
|