<article id="post-<?php the_ID(); ?>" class="offer offerCard">
	<a href="<?php the_permalink(); ?>" class="">
    	<div class="thumbOffer">
        	<?php if(has_post_thumbnail()): ?>
            	<?php the_post_thumbnail( 'thumb-post-medium' ); ?>
        	<?php endif; ?>
    	</div>
    	<div class="contentCardOffer">
        	<div class="topCard">
        		<div class="storeLogo"><img src="<?php the_field('store_logo'); ?>" alt="<?php the_field('store_name'); ?>" /></div>
        		<?php
					$terms = get_the_terms( $post->ID, 'category_offer' );
        		?>
        		<span class="category"><?php echo $terms[0]->name; ?></span>
				<span class="boxOff"><?php the_field('offer'); ?>%OFF</span>
				<span class="after">$<?php the_field('value_after'); ?></span>
        	</div>
        	<header><h2 class="h4"><?php the_title(); ?></h2></header>
        	<p class="btOff">
        		<span class="text">I whant this</span>
        		<span class="price">$<?php the_field('value_after'); ?></span>
        	</p>
    	</div>
    </a>
</article>