96 lines
2.3 KiB
PHP
96 lines
2.3 KiB
PHP
<?php
|
|
/**
|
|
* Template Name: Home Blog
|
|
*
|
|
* @package thbusiness
|
|
*/
|
|
|
|
get_header();?>
|
|
|
|
<div id="content" class="site-content">
|
|
|
|
<div class="container">
|
|
<section id="blog">
|
|
|
|
|
|
<h1 class="page-title">Medical Alert Blog</h1>
|
|
<!-- <div class="col-xs-12 col-sm-12 col-md-12 blogpost">
|
|
|
|
|
|
<div class="row">
|
|
<div class="owl-carousel owl-theme">
|
|
<?php
|
|
|
|
$slide = new WP_Query(array('post_type' => 'post', 'cat' => 61, ));
|
|
|
|
if ( $slide->have_posts() ) : ?>
|
|
|
|
<?php while ( $slide->have_posts() ) : $slide->the_post(); ?>
|
|
|
|
<div class="recent-post" style="background-color: #e6f0f9;">
|
|
<div class ="row" >
|
|
<div class="col-sm-6">
|
|
<h2 style="margin:30px 20px 20px 20px; color:#032e67; font-weight:700;"><?php print get_the_title(); ?></h2>
|
|
<div id="slideblogcontent"><p><?php print get_the_excerpt(); ?></p></div>
|
|
<p style="margin:0px 0 10px 20px; font-size:12px;"><a class="moretag" id="blogread" href="<?php print get_permalink($post->ID) ?>">Read More</a></p>
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<a class="feat-img" href="<?php print get_permalink($post->ID) ?>">
|
|
<?php echo the_post_thumbnail(); ?></a></div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php endwhile; ?>
|
|
|
|
<?php else : ?>
|
|
|
|
<?php //do nothing ?>
|
|
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
</div>
|
|
</div> -->
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-xs-3 col-sm-3 col-md-3">
|
|
|
|
|
|
<?php echo do_shortcode('[searchandfilter id="35078"]'); ?>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="col-xs-9 col-sm-9 col-md-9 blogpost">
|
|
|
|
|
|
<?php
|
|
global $wp_query, $paged;
|
|
$paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
|
|
//$wp_query = new WP_Query(array('post_type' => 'post', 'posts_per_page' => 6, 'cat' => -61, 'paged' => $paged));
|
|
$wp_query = new WP_Query(array('post_type' => 'post', 'paged' => $paged));
|
|
|
|
while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
|
|
|
|
<?php get_template_part('content'); ?>
|
|
<?php endwhile; ?>
|
|
<?php wp_reset_postdata(); ?>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<?php thbusiness_paging_nav(); ?>
|
|
</div>
|
|
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
<?php get_footer(); ?>
|