Skip to content

Instantly share code, notes, and snippets.

@iamcanadian1973
Created September 1, 2021 20:36
Show Gist options
  • Save iamcanadian1973/48f14f997b1e696eb8623c9ea66570df to your computer and use it in GitHub Desktop.
Save iamcanadian1973/48f14f997b1e696eb8623c9ea66570df to your computer and use it in GitHub Desktop.
<section class="container careers-section">
<div class="wrap">
<div class="row column">
<?php
_s_get_template_part('template-parts/careers', 'job-search');
?>
<div class="results-wrapper">
<span class="hide results-count">3 Results Found for: Chugach Alaska Corporation</span>
<div class="row small-up-1 medium-up-2 large-up-4 grid facetwp-template">
<?php
$args = [
'post_type' => 'job',
'posts_per_page' => 12,
'facetwp' => true, // we added this
];
$loop = new WP_Query($args);
if ($loop->have_posts()) {
while ($loop->have_posts()) {
$loop->the_post();
_s_get_template_part('template-parts/careers', 'job-column');
}
}
?>
</div>
<?php
if( function_exists( 'facetwp_display' ) ) {
echo facetwp_display( 'facet', 'load_more' );
}
wp_reset_postdata();
//echo do_shortcode('[facetwp pager="true"]');
?>
</div>
</div>
</div>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment