<?php get_header(); ?>
<section class="pages-first-section blog-first-section " style="padding-top:100px">
</section>
<section class="project">
<div class="container">
<div class="row">
<div class="col-md-5">
<div class="result-tx">
<p>Rezultate e kërkimit tuaj:</p>
</div>
</div>
</div>
<div class="row animated standby fadeIn">
<div class="col-md-12">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php if (is_search() && ($post->post_type=='careers')) continue; ?>
<?php if (is_search() && ($post->post_type=='form')) continue; ?>
<?php if (is_search() && ($post->post_type=='page')) continue; ?>
<div class="row blog-background">
<div class="col-md-6 blog-center-items blog-mobile-order">
<div class="blog-div-details blog-right-div">
<h3> <?php echo esc_html( get_the_title() ); ?></h3>
<p><?php the_field('short_description'); ?></p>
<a href="<?php print get_the_permalink();?>">Повеќе</a>
</div>
</div>
<div class="col-md-6 blogcenter-items">
<div class="grand-design-left-div blog-image">
<?php
if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
the_post_thumbnail( 'full', array( 'class' => 'banner-photo' ) ); // show featured image
}
?>
</div>
</div>
</div>
<?php endwhile; else : ?>
<div class="row">
<div class="col-md-12">
<h4 class="no-result-tx"><?php esc_html_e('Na vjen keq, asnjë postim nuk përputhet me kërkimin tuaj.'); ?></h4>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
</section>
<?php get_footer(); ?>