Displaying expired job posts
New in version 2.2.0 is the option to display expired job posts.
<?php
# Check if there are any job posts available
if( have_expired_jobposts() ) :
# loop through job posts
while( have_expired_jobposts() ) : the_jobpost();
# Print the job post title
the_jobpost('title');
endwhile;
else :
echo "No job posts available.";
endif;
?>Limit the number of job posts to display
Remember to reset the loop
Last updated