<article id="post-<?php the_ID(); ?>" <?php post_class('post-item col-3-12'); ?>>
<?php if (has_post_thumbnail()) {
	$thumb = get_the_post_thumbnail_url(get_the_ID(), 'large'); 
} else {
	$thumb = get_template_directory_uri() .'/img/default.png';

} ?>
<a href="<?php the_permalink();?>"><div class="post-thumb" style="background-image:url('<?php echo esc_url($thumb); ?>')"></div></a>
	<header class="entry-header">
		<a href="<?php the_permalink();?>">
			<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
		</a>			

		<?php echo esc_html(aperture_real_estate_post_category()); ?>			
	</header><!-- .entry-header -->
</article>