*/ global $post,$canuck_feature_pic_count; $category = esc_html( ( '' === get_post_meta( $post->ID, 'canuck_portfolio_category', true ) ? false : esc_html( get_post_meta( $post->ID, 'canuck_portfolio_category', true ) ) ) ); $display_post_content = ( '' === get_post_meta( $post->ID, 'canuck_metabox_include_post_content', true ) ? false : true ); $display_post_content_title = ( '' === get_post_meta( $post->ID, 'canuck_metabox_include_post_content_title', true ) ? false : true ); $display_image_caption = ( '' === get_post_meta( $post->ID, 'canuck_metabox_include_image_caption', true ) ? false : true ); $display_image_description = ( '' === get_post_meta( $post->ID, 'canuck_metabox_include_image_description', true ) ? false : true ); $include_pinterest_pinit = get_theme_mod( 'canuck_include_pinit' ) ? true : false; $category_id = get_cat_ID( $category ); $args = array( 'category' => $category_id, 'numberposts' => 20, ); $custom_posts = get_posts( $args ); $use_lazyload = get_theme_mod( 'canuck_use_lazyload' ) ? true : false; if ( 0 !== $category_id && $custom_posts ) { $canuck_feature_pic_count = 0; ?>