term_id; ?>
$total_portfolio_cat, 'posts_per_page' => -1 ); $query = new WP_Query($args); if($query->have_posts()): while($query->have_posts()) : $query->the_post(); $categories = get_the_category(); $category_slug = ""; $cat_slug = array(); foreach ($categories as $category) { $cat_slug[] = 'total-portfolio-'.$category->term_id; } $category_slug = implode(" ", $cat_slug); if(has_post_thumbnail()){ $image_url = get_template_directory_uri().'/images/portfolio-small-blank.png'; $total_image = wp_get_attachment_image_src(get_post_thumbnail_id(),'total-portfolio-thumb'); $total_image_large = wp_get_attachment_image_src(get_post_thumbnail_id(),'large'); }else{ $image_url = get_template_directory_uri().'/images/portfolio-small.png'; $total_image = ""; } ?>
<?php esc_attr(get_the_title()); ?>