HEX
Server: Apache/2.4.41 (Amazon) OpenSSL/1.0.2k-fips PHP/5.6.40
System: Linux ip-172-31-40-18 4.14.146-93.123.amzn1.x86_64 #1 SMP Tue Sep 24 00:45:23 UTC 2019 x86_64
User: apache (48)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: /var/www/html/pmw24/wp-content/themes/PunjabMotor/template-page/blog-template.php
<?php 
/**
 * Template Name: Blog Template
 *
 * Displays all of the head element and everything up until the "site-content" div.
 *
 * @package WordPress
 * @subpackage Punjab_Motor
 * @since Punjab Motor 1.0
 */
?>
<?php get_header();?>
<!-- Header End-->

<section class="innerbodysection">
  <div class="container">
    <div class="row">
      <div class="col-sm-9">
		<?php query_posts(array('post_type' => 'post', 'paged' => $paged, 'posts_per_page' => -1, 'order' => 'DESC'));  ?>
		<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
			<div class="col-sm-12">
				<div class="row">
					<div class="blog-box">				
						<div class="blog_thum">  			   			
							<?php if ( has_post_thumbnail() ) {	?>
								<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/admin/timthumb/timthumb.php?src=<?php the_post_thumbnail_url('full'); ?>&a=c&q=100&w=344&h=252" alt="<?php the_title(); ?>">
							<?php } else { ?>						
								<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/admin/timthumb/timthumb.php?src=<?php echo esc_url( get_template_directory_uri() ); ?>/images/noimage.jpg&a=c&q=100&w=344&h=252" alt="<?php the_title(); ?>" />
							<?php } ?>
						</div>
						<div class="blog_con">
							<h2><?php the_title();?></h2>						
							<ul class="blog_link">
								<li><i class="fa fa-calendar" aria-hidden="true"></i> <?php echo get_the_date('j F, Y'); ?> </li>
								<li><i class="fa fa-user" aria-hidden="true"></i> Posted By: <?php the_author(); ?> </li>
								<li><i class="fa fa-folder-open" aria-hidden="true"></i>  <?php the_category( $post_id ); ?>  </li>

								<li><i class="fa fa-comments-o" aria-hidden="true"></i> <?php comments_number('No Comments', '1 Comment', '% Comments' ); ?></li>
							</ul>
							<p> <?php echo wp_trim_words( get_the_content(), 90, '...' ); ?> </p>
							<a class="btn btn-primary" href="<?php the_permalink(); ?>" role="button">Read More</a>
						</div>
						<div style="clear: both;"></div>
					</div>
				</div>
			</div>						
		<?php endwhile; ?>
		<div class="col-sm-12">
		<ul class="pagination .pagination-lg">
			<li><?php //pagination_bar(); ?></li>
		</ul>
		</div>
		<?php else : ?>
		  <p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
		<?php endif;  wp_reset_query(); ?>
	  </div>
	  <div class="col-sm-3">
	  <?php get_sidebar(); ?>
	  
	  </div>
    </div>
  </div>
</section>

<!-- footer Start-->
<?php get_footer();?>