<?php
/**
 * Template Name: Career Grid Right Sidebar
 * The main template file for display blog page.
 *
 * @package WordPress
*/

get_header(); 




?>

 <!-- page title start -->
        
        <!-- page title end -->
		
		 <!-- blog start -->
        <section class="blog px-50 pb-130">
            <div class="container-fluid">
               
                <div class="row justify-content-center g-32">
				<?php

global $query_string; 
query_posts($query_string . '&caller_get_posts=1&order=ASC');
$key = 0;

if (have_posts()) : while (have_posts()) : the_post();
	
	
	$image_thumb = '';
								
	if(has_post_thumbnail(get_the_ID(), 'swap-blog'))
	{
	    $image_id = get_post_thumbnail_id(get_the_ID());
	    $image_thumb = wp_get_attachment_image_src($image_id, 'swap-blog', true);
	}
	$blog_ID = get_the_ID();
?>

				
				
				
                    <div class="col-lg-4 col-md-6 mt-30">
                        <div class="blog-single wow fadeInUp" data-wow-delay="0ms" data-wow-duration="400ms">
                            <div class="xb-item--image" data-cursor-text="View">
                                <a href="<?php echo get_permalink( ); ?>"><img src="<?php echo $image_thumb[0]; ?>" alt="<?php the_title(); ?>"></a>
                            </div>
                            <div class="xb-item--content">
                                <span class="xb-item--cat"><?php echo date_i18n('d M Y', get_the_time('U')); ?></span>
								
                                <h2 class="xb-item--title border-effect"><a href="<?php echo get_permalink( ); ?>"><?php the_title(); ?> </a></h2>
                                <a href="<?php echo get_permalink( ); ?>" class="more-link acolor">Read More</a>
                            </div>
                        </div>
                    </div>
					
					
                   <?php endwhile;  endif; 
            wp_reset_postdata();  ?>

                </div>
            </div>
        </section>
        <!-- blog end -->



<?php get_footer(); ?>
