[resolved] Resume Submissions & Job Postings - Archiving (2 posts)

  1. cjc1867
    Posted 3 years ago #

    I would like to show current jobs on a page called Job Vacancies so I'm using the shortcode [jobPostings] as per instructions. I would also like to add 2 recent jobs just to show that they do post jobs and hopefully get people back to their website.

    To show the archived ones I am using [jobPostings archive="Show" limit="2"] but it shows all the jobs including the current ones...is this right?

    In my mind, a current job is not archived until I tick the checkbox and it gets removed from the current jobs list.

    How can I change the code so that only the archived jobs are shown?


  2. cjc1867
    Posted 3 years ago #

    Panic over I changed the condition from '<=' to '==' at the top of the file display-jobs.php and it has done what I wanted as it makes more sense.

    I think it's also nice to show a comment when there are no current vacancies instead of having a blank page so I added a conditional statement as well just before the Foreach statement.


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.