post_author; $business_craft_home_blog_title = $business_craft_customizer_all_values['business-craft-home-blog-title']; $business_craft_home_blog_button_text = $business_craft_customizer_all_values['business-craft-home-blog-button-text']; $business_craft_home_blog_button_link = $business_craft_customizer_all_values['business-craft-home-blog-button-link']; $business_craft_home_blog_single_words = absint( $business_craft_customizer_all_values['business-craft-home-blog-single-words'] ); $business_craft_home_blog_category = $business_craft_customizer_all_values['business-craft-home-blog-category']; if( 1 != $business_craft_customizer_all_values['business-craft-home-blog-enable'] ){ return null; } ?>

'post', 'posts_per_page' => 2, 'cat' => absint($business_craft_home_blog_category), 'ignore_sticky_posts' => 1, ); $business_craft_home_about_post_query = new WP_Query($business_craft_home_blog_args); if ($business_craft_home_about_post_query->have_posts()) : while ($business_craft_home_about_post_query->have_posts()) : $business_craft_home_about_post_query->the_post(); if(has_post_thumbnail()){ $thumb = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'medium' ); $url = $thumb['0']; } else{ $url = get_template_directory_uri().'/assets/img/placeholder-banner.png'; } ?>

'post', 'posts_per_page' => 4, 'offset' => 2, 'cat' => absint($business_craft_home_blog_category), 'ignore_sticky_posts' => 1, ); $business_craft_home_about_post_query = new WP_Query($business_craft_home_blog_args); if ($business_craft_home_about_post_query->have_posts()) : while ($business_craft_home_about_post_query->have_posts()) : $business_craft_home_about_post_query->the_post(); if(has_post_thumbnail()){ $thumb = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_ID() ), 'medium' ); $url = $thumb['0']; } else{ $url = get_template_directory_uri().'/assets/img/placeholder-banner.png'; } ?>