<?php if (have_posts()): while (have_posts()) : the_post(); ?>

	<!-- article -->
	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    <div class="container mb-4">
        <div class="row">
            <div class="col-lg-4">
                <div class="card newz-card">
                    
                    <!-- post thumbnail -->
            	    	<?php if ( has_post_thumbnail()) : // Check if thumbnail exists ?>
            			<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
            				<?php the_post_thumbnail('full'); // Declare pixel size you need inside the array ?>
            			</a>
            		<?php endif; ?>
            		<!-- /post thumbnail --> 
                    <div class="card-body blopg">
                        <!-- post title -->
        		<h3 class="kipya-post-title">
        			<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
        		</h3>
        		<!-- /post title -->
                    </div>
                </div>
               
            </div>
        </div>
    </div>
		
	</article>
	<!-- /article -->

<?php endwhile; ?>

<?php else: ?>

	<!-- article -->
	<article>
		<h2><?php _e( 'Sorry, nothing to display.', 'html5blank' ); ?></h2>
	</article>
	<!-- /article -->

<?php endif; ?>
