Support » Plugin: WP Job Manager » Job Listings Page template

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Jen H. (a11n)


    Hi @benchwarmer,

    does this same process add the field to the job listings page that shows all the jobs available?

    This code is only specific to the add job page, so you wouldn’t be able to extrapolate it to somewhere else on the site.

    If not, is there a way to add fields to that page?

    I’m not entirely clear on what you’re looking for, but assistance with implementing or troubleshooting customizations is outside of the scope of the support that we offer, per our Support Policy:

    If you need it, you can search for development help in a variety of places — here are a few to start:

    I’ll leave this open for a few days in case there’s someone else in the community who would like to chime in and lend a hand.

    Best of luck.

    Thread Starter benchwarmer


    Hi Jen,

    To clarify my question. On this page (from your demo site )

    This is a list of all jobs, however it only shows certain information. The above documentation I was referencing shows how to add a salary field to the add jobs page AND have it display on a single job post. I was asking whether there was a way to change what is displayed on this job listings page (again:, e.g. add that same salary field to the job listings page rather than just the single job post.

    • This reply was modified 4 years, 1 month ago by benchwarmer.
    Plugin Contributor Jen H. (a11n)


    Hey @benchwarmer,

    Thanks so much for the clarification. I’m not sure how to pull in individual fields on the main listings page, but I can tell you how to pull in listing excerpts so they display there below the titles. Perhaps you can extrapolate from that?

    Since excerpts aren’t enabled by default for job listings, you will need to enable them in your theme:

    function add_excerpt_support_for_jobs() {
        add_post_type_support( 'job_listing', 'excerpt' );
    add_action( 'init', 'add_excerpt_support_for_jobs' );

    I’d recommend using a plugin like Code Snippets to add this code to your site, rather than adding it directly to functions.php:

    If everything was added properly, there should now be a meta box on your job edit screens in wp-admin that look like this:

    You’ll need to write the excerpt you’d like to use, in there. This may require you to go back through and add them manually for the listings you’ve already got on the site.

    If you don’t see that box, check the Screen Options tab in the top right corner, and make sure that the Excerpts option is selected there.

    You’ll need to do a template override to implement this. The template you’ll want is content-single-job_listing.php.

    Calling the_excerpt() in the template file will output the excerpt. You could do something like this:

    <div class="excerpt">
        <?php the_excerpt() ?>

    Alternatively, you could use get_the_excerpt() to put it into a variable. For example, if you wanted to only add the div if the excerpt wasn’t empty.

    <?php $excerpt = get_the_excerpt() ?>
    <?php if ( ! empty( $excerpt ) ) : ?>
    <div class="excerpt">
        <?php echo $excerpt ?>
    <?php endif; ?>

    More on template overrides can be found here:


    Plugin Contributor Richard Archambault


    I’m marking this thread as Resolved as it’s been more than a month since the last reply. If you still need help, please do reply again and mark the thread as Unresolved!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Job Listings Page template’ is closed to new replies.