WordPress.org

Forums

WP Job Manager
[resolved] Job Expiration set to Jan 1, 1970 (8 posts)

  1. marketermatt
    Member
    Posted 10 months ago #

    Hey Mike. The expiration date of all my jobs is being set to Jan 1, 1970. The Listing Duration setting is blank because I don't want the jobs to expire, so I'm not sure why they're picking up that date. When the cron job runs, they all expire which is pretty annoying. Help?

    https://wordpress.org/plugins/wp-job-manager/

  2. Mike Jolley
    Member
    Plugin Author

    Posted 10 months ago #

    Can you tell me how these jobs are being added to your site, what version you are running, and what other JM plugins?

  3. Mike Jolley
    Member
    Plugin Author

    Posted 10 months ago #

    Can you tell me how these jobs are being added to your site, what version you are running, and what other JM plugins?

  4. marketermatt
    Member
    Posted 10 months ago #

    Jobs are being added through a page containing the [submit_job_form] shortcode. We're running job manager 1.13.0, WP Job Manager - Apply with Ninja Forms, and WP Job Manager - Resume Manager.

  5. Mike Jolley
    Member
    Plugin Author

    Posted 10 months ago #

    Are you also use WC Paid Listings by any chance?

    The set_expirey function has 3 checks:

    1. to see if _job_expires has been manually set
    2. to see if _job_duration has been set at job level (WC Paid Listings does this)
    3. The job_manager_submission_duration option

  6. marketermatt
    Member
    Posted 10 months ago #

    Hi Mike, I am not using WC Paid Listings. I am using _job_duration though... how does this relate to the _job_expires field?

    My setup allows users to enter the job duration in a text field so they're using entries like "2 Weeks" or "Weekend" or whatever. Does this field have to accept a certain data type to work with the expiration date?

  7. Mike Jolley
    Member
    Plugin Author

    Posted 10 months ago #

    Yes - _job_duration needs to be an integer (number of days).

  8. marketermatt
    Member
    Posted 10 months ago #

    Oh okay gotcha. I'll try that.

Reply

You must log in to post.

About this Plugin

  • WP Job Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic