theme_get_post_type_slug(), 'paged' => $paged ); $works = new WP_Query($args); if ($works->have_posts()) { ?>
have_posts()) { $works->the_post(); $feat_image_url = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'thumb-large'); $widthImg = $feat_image_url[1]; $classPage = ''; if ($widthImg >= 600) { $classPage = 'work-wrapper-cover'; } $workBg = get_post_meta(get_the_ID(), '_work_bg', true); if (empty($workBg)): $workBg = "work-wrapper-light"; endif; if ($feat_image_url): ?>
','
'); ?>
','
'); ?>