X Features Cars Demo Power Plants Demo State Parks Demo Site Showcase Docs Tutorials Add-ons Buy

Using FacetWP with WP Job Manager

WP Job Manager provides a [jobs] shortcode for adding a jobs listing to any page. FacetWP doesn’t directly support it, but it’s possible to clone it using a FacetWP template.

First, go into Settings > FacetWP > Templates and create a new template named “Jobs”.

Query Arguments

For the Query Arguments box, click the “Open Query Builder” link. In the subsequent modal, select “Jobs” as the post type, then hit the Send to Editor button.

Display Code

For the Display Code box, enter the following:

<?php if ( have_posts() ) : ?>

    <?php get_job_manager_template( 'job-listings-start.php' ); ?>

    <?php while ( have_posts() ) : the_post(); ?>
        <?php get_job_manager_template_part( 'content', 'job_listing' ); ?>
    <?php endwhile; ?>

    <?php get_job_manager_template( 'job-listings-end.php' ); ?>

<?php else :
    do_action( 'job_manager_output_jobs_no_results' );
endif;