| Server IP : 198.244.165.102 / Your IP : 216.73.216.218 [ Web Server : nginx/1.24.0 System : Linux modovh-ub-01 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 User : colleary ( 1011) PHP Version : 8.3.23 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/midwest/public_html/wp-content/themes/midwest-vue-shell/ |
Upload File : |
<?php
/*
Template Name: Job Waves
*/
get_header(); // Include the header
?>
<?php get_template_part('template-parts/content', 'custom-advertisement'); ?>
<?php get_template_part('template-parts/content', 'google-ads-top'); ?>
<!-- <div data-fuse="Jobwaves_top_leaderboard"></div> -->
<section class="mid-content-wrap main_content_podcasts">
<div class="container">
<div class="row">
<div class="col-md-12 mid-pad-ziro">
<!-- Search and Filter Form Start -->
<!-- <div class="search-filter-wrap mid-obituary-search-wrap">
<div class="form-row align-items-end row">
<div class="col-md-5">
<input type="text" name="s" class="form-control" placeholder="Search" id="search-name" />
</div>
<div class="col-md-5">
<input type="text" name="date_filter" class="form-control" id="date-filter" placeholder="Select Date" />
</div>
<div class="col-md-2">
<button id="filter-button" class="btn btn-primary mid-view-all-btn">Filter</button>
</div>
</div>
</div> -->
<!-- Search and Filter Form End -->
<!-- Job Waves Slider Start -->
<div id="death-notices-results" class="mid-home-slider-wrap mid-pad--right-ziro mid-inner-news mid-obituary-wrap">
<div class="mid-home-slider-inner">
<div class="row" id="obituary-list">
<?php
// Set up query parameters
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; // Get the current page number
$args = array(
'post_type' => 'jobwaves',
'posts_per_page' => -1, // Number of posts to display
'orderby' => 'date',
'order' => 'DESC',
'paged' => $paged, // Pass the current page number
);
$job_query = new WP_Query($args);
if ($job_query->have_posts()) : ?>
<div class="obituary-list">
<?php while ($job_query->have_posts()) : $job_query->the_post(); ?>
<div class="obituary-item d-flex mb-3">
<div class="job-content">
<div class="job-date">
<small><?php echo get_the_date('M j, Y'); ?> </small>
</div>
<h4 class="job-title">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h4>
<p class="job-excerpt">
<?php echo wp_trim_words(wp_strip_all_tags(get_the_excerpt()), 10, '...'); ?>
</p>
<!-- <a href="<?php the_permalink(); ?>" class="btn btn-primary mid-read-more-btn"> -->
<!-- Read more <i class="fa-solid fa-plus"></i> -->
</a>
</div>
</div>
<?php endwhile; ?>
</div>
<?php else : ?>
<div class="col-md-12">
<p>No job listings found.</p>
</div>
<?php endif;
wp_reset_postdata(); ?>
</div>
</div>
</div>
<!-- Job Waves Slider End -->
</div>
</div>
</div>
</section>
<!-- <div data-fuse="Jobwaves_bottom_leaderboard"></div> -->
<?php get_template_part('template-parts/content', 'google-ads-bottom'); ?>
<?php get_footer('inner'); ?>