File: /home/dailyajk/public_html/wp-content/themes/jphostbd-news12/assets/file/page/section-four.php
<?php global $jphostbd; ?>
<!--news-section-->
<section class="news-section">
<div class="container">
<?php
$category_name = get_the_category_by_id($jphostbd['cat-five']);
$category_name_link = get_category_link($jphostbd['cat-five']);
?>
<div class="category-title-2"><strong><a href="<?php echo esc_url($category_name_link);?>"><?php echo $category_name;?></a></strong></div>
<div class="row">
<div class="col-md-3 col-sm-3">
<?php
$themes_dealer = new WP_Query(array(
'post_type' => 'post',
'posts_per_page' =>2,
'category_name' => $category_name,
));
while ($themes_dealer->have_posts()) : $themes_dealer->the_post(); ?>
<div class="lead-news">
<?php if(has_post_thumbnail()){
the_post_thumbnail();}
else{?>
<img src="<?php echo get_template_directory_uri(); ?>/assets/img/noimage.gif" width="100%" />
<?php } ?>
<div class="content">
<h4 class="lead-heading-01"><a href="<?php the_permalink()?>"><?php the_title() ?></a> </h4>
</div>
</div>
<?php endwhile ?>
</div>
<div class="col-md-6 col-sm-6">
<?php
$themes_dealer = new WP_Query(array(
'post_type' => 'post',
'posts_per_page' =>1,
'offset' => 2,
'category_name' => $category_name,
));
while ($themes_dealer->have_posts()) : $themes_dealer->the_post(); ?>
<div class="lead-news">
<?php if(has_post_thumbnail()){
the_post_thumbnail();}
else{?>
<img src="<?php echo get_template_directory_uri(); ?>/assets/img/noimage.gif" width="100%" />
<?php } ?>
<div class="content">
<h4 class="lead-heading-01"><a href="<?php the_permalink()?>"><?php the_title() ?></a> </h4>
</div>
</div>
<?php endwhile ?>
</div>
<div class="col-md-3 col-sm-3">
<?php
$themes_dealer = new WP_Query(array(
'post_type' => 'post',
'posts_per_page' =>2,
'offset' => 3,
'category_name' => $category_name,
));
while ($themes_dealer->have_posts()) : $themes_dealer->the_post(); ?>
<div class="lead-news">
<?php if(has_post_thumbnail()){
the_post_thumbnail();}
else{?>
<img src="<?php echo get_template_directory_uri(); ?>/assets/img/noimage.gif" width="100%" />
<?php } ?>
<div class="content">
<h4 class="lead-heading-01"><a href="<?php the_permalink()?>"><?php the_title() ?></a> </h4>
</div>
</div>
<?php endwhile ?>
</div>
</div>
<div class="row">
<div class="col-md-6 col-sm-6">
<div class="add">
<?php dynamic_sidebar('widget_area_05')?>
</div>
</div>
<div class="col-md-6 col-sm-6">
<div class="add">
<?php dynamic_sidebar('widget_area_06')?>
</div>
</div>
</div>
</div>
</section>