HEX
Server: LiteSpeed
System: Linux server1.jphostbd.xyz 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
User: dailyajk (1018)
PHP: 7.4.33
Disabled: mail, show_source, system, shell_exec, passthru, exec, eval, shell
Upload Files
File: /home/dailyajk/public_html/wp-content/themes/jphostbd-news12/assets/file/page/section-six.php
<?php global $jphostbd; ?>
<!--news-section-->
		<section class="news-section">
			<div class="container">
				<div class="row">
					<div class="col-md-4 col-sm-4">
						<?php
						$category_name = get_the_category_by_id($jphostbd['cat-nine']);
						$category_name_link = get_category_link($jphostbd['cat-nine']);
						?>
						<div class="category-title-2"><strong><a href="<?php echo esc_url($category_name_link);?>"><?php echo $category_name;?></a></strong></div>
						<?php
						$themes_dealer = new WP_Query(array(
							'post_type' => 'post',
							'posts_per_page' =>1,
							'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 } ?>
							<h4 class="heading-01"><a href="<?php the_permalink()?>"><?php the_title() ?></a></h4>
							<p><?php echo excerpt($jphostbd['excerpt-cat-nine']); ?><span style="text-align:right"><a href="<?php the_permalink();?>"><?php echo $jphostbd['read-more-archive']?></a></span></p>
						</div>
						<?php endwhile ?>
						<?php
						$how_cat= $jphostbd['how_post_nine'];
						$total_how_cat=$how_cat-1;
						$themes_dealer = new WP_Query(array(
							'post_type' => 'post',
							'posts_per_page' => $total_how_cat,
							'offset' => 1,
							'category_name' => $category_name,

						));
						while ($themes_dealer->have_posts()) : $themes_dealer->the_post(); ?>
						<div class="image-title">
							<?php if(has_post_thumbnail()){ 
							the_post_thumbnail();}
							else{?>
							<img src="<?php echo get_template_directory_uri(); ?>/assets/img/noimage.gif" width="100%" />
							<?php } ?>
							<h4 class="heading-03"><a href="<?php the_permalink()?>"><?php the_title() ?></a></h4>
						</div>
						<?php endwhile ?>
					</div>
					<div class="col-md-4 col-sm-4">
						<?php
						$category_name = get_the_category_by_id($jphostbd['cat-ten']);
						$category_name_link = get_category_link($jphostbd['cat-ten']);
						?>
						<div class="category-title-2"><strong><a href="<?php echo esc_url($category_name_link);?>"><?php echo $category_name;?></a></strong></div>
						<?php
						$themes_dealer = new WP_Query(array(
							'post_type' => 'post',
							'posts_per_page' =>1,
							'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 } ?>
							<h4 class="heading-01"><a href="<?php the_permalink()?>"><?php the_title() ?></a></h4>
							<p><?php echo excerpt($jphostbd['excerpt-cat-ten']); ?><span style="text-align:right"><a href="<?php the_permalink();?>"><?php echo $jphostbd['read-more-archive']?></a></span></p>
						</div>
						<?php endwhile ?>
						<?php
						$how_cat= $jphostbd['how_post_ten'];
						$total_how_cat=$how_cat-1;
						$themes_dealer = new WP_Query(array(
							'post_type' => 'post',
							'posts_per_page' => $total_how_cat,
							'offset' => 1,
							'category_name' => $category_name,

						));
						while ($themes_dealer->have_posts()) : $themes_dealer->the_post(); ?>
						<div class="image-title">
							<?php if(has_post_thumbnail()){ 
							the_post_thumbnail();}
							else{?>
							<img src="<?php echo get_template_directory_uri(); ?>/assets/img/noimage.gif" width="100%" />
							<?php } ?>
							<h4 class="heading-03"><a href="<?php the_permalink()?>"><?php the_title() ?></a></h4>
						</div>
						<?php endwhile ?>
					</div>
					<div class="col-md-4 col-sm-4">
						<?php
						$category_name = get_the_category_by_id($jphostbd['cat-eleven']);
						$category_name_link = get_category_link($jphostbd['cat-eleven']);
						?>
						<div class="category-title-2"><strong><a href="<?php echo esc_url($category_name_link);?>"><?php echo $category_name;?></a></strong></div>
						<?php
						$themes_dealer = new WP_Query(array(
							'post_type' => 'post',
							'posts_per_page' =>1,
							'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 } ?>
							<h4 class="heading-01"><a href="<?php the_permalink()?>"><?php the_title() ?></a></h4>
							<p><?php echo excerpt($jphostbd['excerpt-cat-eleven']); ?><span style="text-align:right"><a href="<?php the_permalink();?>"><?php echo $jphostbd['read-more-archive']?></a></span></p>
						</div>
						<?php endwhile ?>
						<?php
						$how_cat= $jphostbd['how_post_eleven'];
						$total_how_cat=$how_cat-1;
						$themes_dealer = new WP_Query(array(
							'post_type' => 'post',
							'posts_per_page' => $total_how_cat,
							'offset' => 1,
							'category_name' => $category_name,

						));
						while ($themes_dealer->have_posts()) : $themes_dealer->the_post(); ?>
						<div class="image-title">
							<?php if(has_post_thumbnail()){ 
							the_post_thumbnail();}
							else{?>
							<img src="<?php echo get_template_directory_uri(); ?>/assets/img/noimage.gif" width="100%" />
							<?php } ?>
							<h4 class="heading-03"><a href="<?php the_permalink()?>"><?php the_title() ?></a></h4>
						</div>
						<?php endwhile ?>
					</div>
				</div>
			</div>
			<div class="row">
					<div class="col-md-6 col-sm-6">
						<div class="add">
						<?php dynamic_sidebar('widget_area_11')?>
						</div>
					</div>
					<div class="col-md-6 col-sm-6">
						<div class="add">
						<?php dynamic_sidebar('widget_area_12')?>
						</div>
					</div>
				</div>
			</div>
			<section class="news-section">
			<div class="container">
				<div class="row">
					<div class="col-md-4 col-sm-4">
						<?php
						$category_name = get_the_category_by_id($jphostbd['cat-twelve']);
						$category_name_link = get_category_link($jphostbd['cat-twelve']);
						?>
						<div class="category-title-2"><strong><a href="<?php echo esc_url($category_name_link);?>"><?php echo $category_name;?></a></strong></div>
						<?php
						$how_cat= $jphostbd['how_post_twelve'];
						$total_how_cat=$how_cat-0;
						$themes_dealer = new WP_Query(array(
							'post_type' => 'post',
							'posts_per_page' => $total_how_cat,
							'offset' => 0,
							'category_name' => $category_name,

						));
						while ($themes_dealer->have_posts()) : $themes_dealer->the_post(); ?>
						<div class="image-title">
							<?php if(has_post_thumbnail()){ 
							the_post_thumbnail();}
							else{?>
							<img src="<?php echo get_template_directory_uri(); ?>/assets/img/noimage.gif" width="100%" />
							<?php } ?>
							<h4 class="heading-03"><a href="<?php the_permalink()?>"><?php the_title() ?></a></h4>
						</div>
						<?php endwhile ?>
					</div>
					<div class="col-md-4 col-sm-4">
						<?php
						$category_name = get_the_category_by_id($jphostbd['cat-thirteen']);
						$category_name_link = get_category_link($jphostbd['cat-thirteen']);
						?>
						<div class="category-title-2"><strong><a href="<?php echo esc_url($category_name_link);?>"><?php echo $category_name;?></a></strong></div>
						<?php
						$themes_dealer = new WP_Query(array(
							'post_type' => 'post',
							'posts_per_page' =>1,
							'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 } ?>
							<h4 class="heading-01"><a href="<?php the_permalink()?>"><?php the_title() ?></a></h4>
							<p><?php echo excerpt($jphostbd['excerpt-cat-thirteen']); ?><span style="text-align:right"><a href="<?php the_permalink();?>"><?php echo $jphostbd['read-more-archive']?></a></span></p>
						</div>
						<?php endwhile ?>
					</div>
						<div class="col-md-4 col-sm-4">
						<?php
						$category_name = get_the_category_by_id($jphostbd['cat-fourteen']);
						$category_name_link = get_category_link($jphostbd['cat-fourteen']);
						?>
						<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">
							<?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="col-md-6 col-sm-6">
								<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 } ?>
									<h4 class="heading-02"><a href="<?php the_permalink()?>"><?php the_title() ?></a></h4>
								</div>
							</div>
							<?php endwhile ?>
						</div>
						<div class="row">
							<?php
							$themes_dealer = new WP_Query(array(
								'post_type' => 'post',
								'posts_per_page' =>2,
								'offset' => 2,
								'category_name' => $category_name,
							));
							while ($themes_dealer->have_posts()) : $themes_dealer->the_post(); ?>
							<div class="col-md-6 col-sm-6">
								<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 } ?>
									<h4 class="heading-02"><a href="<?php the_permalink()?>"><?php the_title() ?></a></h4>
								</div>
							</div>
							<?php endwhile ?>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-md-6 col-sm-6">
						<div class="add">
						<?php dynamic_sidebar('widget_area_13')?>
						</div>
					</div>
					<div class="col-md-6 col-sm-6">
						<div class="add">
						<?php dynamic_sidebar('widget_area_14')?>
						</div>
					</div>
				</div>
			</div>
			
			<div class="container">
				<?php
				$category_name = get_the_category_by_id($jphostbd['cat-fifteen']);
				$category_name_link = get_category_link($jphostbd['cat-fifteen']);
				?>
				<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_15')?>
						</div>
					</div>
					<div class="col-md-6 col-sm-6">
						<div class="add">
						<?php dynamic_sidebar('widget_area_16')?>
						</div>
					</div>
				</div>
			</div>
				<div class="col-md-4 col-sm-4">
						<?php
						$category_name = get_the_category_by_id($jphostbd['cat-sixteen']);
						$category_name_link = get_category_link($jphostbd['cat-sixteen']);
						?>
						<div class="category-title-2"><strong><a href="<?php echo esc_url($category_name_link);?>"><?php echo $category_name;?></a></strong></div>
						<?php
						$themes_dealer = new WP_Query(array(
							'post_type' => 'post',
							'posts_per_page' =>1,
							'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 } ?>
							<h4 class="heading-01"><a href="<?php the_permalink()?>"><?php the_title() ?></a></h4>
							<p><?php echo excerpt($jphostbd['excerpt-cat-sixteen']); ?><span style="text-align:right"><a href="<?php the_permalink();?>"><?php echo $jphostbd['read-more-archive']?></a></span></p>
						</div>
						<?php endwhile ?>
						<?php
						$how_cat= $jphostbd['how_post_sixteen'];
						$total_how_cat=$how_cat-1;
						$themes_dealer = new WP_Query(array(
							'post_type' => 'post',
							'posts_per_page' => $total_how_cat,
							'offset' => 1,
							'category_name' => $category_name,

						));
						while ($themes_dealer->have_posts()) : $themes_dealer->the_post(); ?>
						<div class="image-title">
							<?php if(has_post_thumbnail()){ 
							the_post_thumbnail();}
							else{?>
							<img src="<?php echo get_template_directory_uri(); ?>/assets/img/noimage.gif" width="100%" />
							<?php } ?>
							<h4 class="heading-03"><a href="<?php the_permalink()?>"><?php the_title() ?></a></h4>
						</div>
						<?php endwhile ?>
					</div>
					<div class="col-md-4 col-sm-4">
						<?php
						$category_name = get_the_category_by_id($jphostbd['cat-seventeen']);
						$category_name_link = get_category_link($jphostbd['cat-seventeen']);
						?>
						<div class="category-title-2"><strong><a href="<?php echo esc_url($category_name_link);?>"><?php echo $category_name;?></a></strong></div>
						<?php
						$how_cat= $jphostbd['how_post_seventeen'];
						$total_how_cat=$how_cat-0;
						$themes_dealer = new WP_Query(array(
							'post_type' => 'post',
							'posts_per_page' => $total_how_cat,
							'offset' => 0,
							'category_name' => $category_name,

						));
						while ($themes_dealer->have_posts()) : $themes_dealer->the_post(); ?>
						<div class="image-title">
							<?php if(has_post_thumbnail()){ 
							the_post_thumbnail();}
							else{?>
							<img src="<?php echo get_template_directory_uri(); ?>/assets/img/noimage.gif" width="100%" />
							<?php } ?>
							<h4 class="heading-03"><a href="<?php the_permalink()?>"><?php the_title() ?></a></h4>
						</div>
						<?php endwhile ?>
					</div>
					<div class="col-md-4 col-sm-4">
						<?php
						$category_name = get_the_category_by_id($jphostbd['cat-eighteen']);
						$category_name_link = get_category_link($jphostbd['cat-eighteen']);
						?>
						<div class="category-title-2"><strong><a href="<?php echo esc_url($category_name_link);?>"><?php echo $category_name;?></a></strong></div>
						<?php
						$themes_dealer = new WP_Query(array(
							'post_type' => 'post',
							'posts_per_page' =>1,
							'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 } ?>
							<h4 class="heading-01"><a href="<?php the_permalink()?>"><?php the_title() ?></a></h4>
							<p><?php echo excerpt($jphostbd['excerpt-cat-eighteen']); ?><span style="text-align:right"><a href="<?php the_permalink();?>"><?php echo $jphostbd['read-more-archive']?></a></span></p>
						</div>
						<?php endwhile ?>
						<?php
						$how_cat= $jphostbd['how_post_eighteen'];
						$total_how_cat=$how_cat-1;
						$themes_dealer = new WP_Query(array(
							'post_type' => 'post',
							'posts_per_page' => $total_how_cat,
							'offset' => 1,
							'category_name' => $category_name,

						));
						while ($themes_dealer->have_posts()) : $themes_dealer->the_post(); ?>
						<div class="image-title">
							<?php if(has_post_thumbnail()){ 
							the_post_thumbnail();}
							else{?>
							<img src="<?php echo get_template_directory_uri(); ?>/assets/img/noimage.gif" width="100%" />
							<?php } ?>
							<h4 class="heading-03"><a href="<?php the_permalink()?>"><?php the_title() ?></a></h4>
						</div>
						<?php endwhile ?>
					</div>
				</div>
			</div>
		</section>