'post', 'posts_per_page' => '-1', 'category_name' => ! empty( $themotion_video_category ) && 'all' != $themotion_video_category ? esc_html( $themotion_video_category ) : '', ); $the_query = new WP_Query( $args ); if ( $the_query->have_posts() && ( ! empty( $themotion_home_b_header_text ) || ! empty( $themotion_home_b_button_text ) || ! empty( $header_image )) ) { ?>
have_posts() && ( ! empty( $themotion_home_b_header_text ) || ! empty( $themotion_home_b_button_text ) || ! empty( $header_image ) || is_customize_preview() ) ) { ?>
have_posts() ) { $the_query->the_post(); if ( 3 == $post_count ) { break; } if ( has_post_format( 'video' ) ) { if ( has_post_thumbnail() ) { ?>
post_content ); $embeds = get_media_embedded_in_content( $content ); if ( ! empty( $embeds ) ) { echo themotion_escape_lightbox( $embeds[0] ); } ?>
post_content ); $embeds = get_media_embedded_in_content( $content ); if ( ! empty( $embeds ) ) { ?>
'post', 'posts_per_page' => '-1', 'category_name' => ! empty( $themotion_video_category ) && 'all' !== $themotion_video_category ? esc_html( $themotion_video_category ) : '', ); $the_query = new WP_Query( $args ); if ( $the_query->have_posts() ) { while ( $the_query->have_posts() ) { $the_query->the_post(); if ( has_post_format( 'video' ) ) { return true; break; } } } wp_reset_postdata(); } return false; } endif; if ( ! function_exists( 'themotion_template_two_posts_header' ) ) : /** * Function to display the header of posts on home template two] */ function themotion_template_two_posts_header() { $themotion_bottom_posts_title = get_theme_mod( 'themotion_bottom_posts_title', esc_html__( 'Recently Posted', 'themotion' ) ); if ( ! empty( $themotion_bottom_posts_title ) ) { ?>

>

>

>

>

>

>

>

term_id ); } else { $label_link = get_tag_link( $item->term_id ); } if ( $i < 2 || $i > 2 ) { ?> name ); ?>
>
', '' ); ?>