WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. cjc1867
    Member
    Posted 1 year ago #

    Hi
    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?

    http://wordpress.org/extend/plugins/resume-submissions-job-postings/

  2. cjc1867
    Member
    Posted 1 year 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.

    Colin

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.