<?php $category = get_the_category(); ?>
<article id="post-<?php the_ID(); ?>" class="linkarticle">
    <a href="<?php the_permalink(); ?>" class="contentImage">
        <?php if(has_post_thumbnail()): ?>
            <?php the_post_thumbnail( 'thumb-post-medium' ); ?>
        <?php endif; ?>
    </a>
    <header>     
        <h5><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h5>
        <div class="meta">
        	<?php if('post' == get_post_type()): ?>
            <a href="<?php echo get_category_link($category[0]->term_id); ?>" class="bt-category bg-cat-<?php echo $category[0]->slug; ?>"><?php echo $category[0]->cat_name; ?></a>
            <span class="separador"></span>
        	<?php endif; ?>
            <span class="data"><?php the_time('d'); ?>/<?php the_time('m'); ?>/<?php the_time('Y'); ?></span> 
        </div><!-- .meta -->
    </header>
</article>