bibhamrokhanpin/wp-content/themes/stnews-theme/health.php

69 lines
3.3 KiB
PHP
Raw Permalink Normal View History

2024-04-10 12:01:06 +00:00
<div class="sidebar-page-container">
<div class="container">
<div class="row clearfix">
<!--Content Side-->
<div class="content-side col-lg-9 col-md-12 col-sm-12">
<!--Sec Title-->
<div class="sec-title">
<h2>Health</h2>
</div>
<div class="content-blocks">
<div class="row">
2024-04-11 07:33:08 +00:00
<?php $the_query = catagorydatabyid(1, 3); ?>
2024-04-10 12:01:06 +00:00
<?php if ($the_query->have_posts()) : ?>
<?php while ($the_query->have_posts()) : $the_query->the_post(); ?>
<div class="nbo-st col-lg-6 col-md-6 col-sm-6 col-xs-12">
<div class="inner-box business-focus">
<div class="image">
<a href="<?php the_permalink(); ?>">
<?php
if (has_post_thumbnail()) {
the_post_thumbnail('', array('class' => 'img-fluid'));
}
?>
</a>
</div>
<div class="content-inner pt20">
<h2> <a href="<?php the_permalink(); ?>"><?php echo mb_strimwidth(get_the_title(), 0, 35, '...'); ?></a></h2>
<div class="text"><?php echo excerpt(35); ?> </div>
</div>
</div>
</div>
<?php endwhile; ?>
<?php endif; ?>
</div>
<div class="row">
2024-04-11 07:33:08 +00:00
<?php listingnews(1, 3, 2, ''); ?>
2024-04-10 12:01:06 +00:00
</div>
</div>
</div>
<div class="sidebar-side col-lg-3 col-md-12 col-sm-12">
<aside class="sidebar default-sidebar">
<?php
$args = array(
'post_type' => 'advertisement',
'posts_per_page' => 5,
'tax_query' => array(
'relation' => 'OR',
array(
'taxonomy' => 'add-category',
'field' => 'slug',
'terms' => array('right-side-business-focus-ad'),
),
),
);
$bm = new WP_Query($args);
while ($bm->have_posts()) : $bm->the_post(); ?>
<div class="sidebar-widget">
<div class="widget-content">
<div class="image">
<?php the_post_thumbnail('', array('class' => 'img-fluid')); ?>
</div>
</div>
</div>
<?php endwhile; ?>
</aside>
</div>
</div>
</div>
</div>