Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter jackrp

    (@jackrp)

    Apologies, thanks Vinod.

    Thread Starter jackrp

    (@jackrp)

    Thanks Thomas! Sorry, I was getting in a muddle! Many thanks. 🙂

    Thread Starter jackrp

    (@jackrp)

    Thanks Thomas, just to clarify: do you mean that if I add the following code to my functions.php, but leave both fields blank on the Edit Job page, the jobs will remain active indefinitely?

    add_filter( 'job_manager_job_listing_data_fields', 'admin_add_startdate_field' );
    function admin_add_startdate_field( $fields ) {
      $fields['_start_date'] = array(
        'label' => __( 'Start Date', 'job_manager' ),
        'type' => 'text',
        'placeholder' => 'Leave this blank.',
        'description' => '',
        'class' => 'hasDatepicker'
      );
      return $fields;
    }
    
    add_filter( 'job_manager_job_listing_data_fields', 'admin_add_enddate_field' );
    function admin_add_enddate_field( $fields ) {
      $fields['_end_date'] = array(
        'label' => __( 'End Date', 'job_manager' ),
        'type' => 'text',
        'placeholder' => 'Leave this blank.',
        'description' => ''
      );
      return $fields;
    }

    Many thanks again! 🙂

    Thread Starter jackrp

    (@jackrp)

    Thanks Thomas, good questions, answers below:

    [1] I’m using the latest, 4.0.1

    [2] Those jobs have a range of expiry dates, admittedly all in the past (Dec 16 2013 – Mar 14 2014), although this isn’t what marks them out, since the other jobs also have expiries in the past (Sep 29 2014 – Jan 1 2015) but have not been marked as inactive and relocated to trash.

    [3] I didn’t know there was a [Display End Date], I can’t see that field under Job Manager: Edit Job. I’m guessing it might be a custom field? I haven’t knowingly set one.

    So it could be connected to the expiry dates? Is there perhaps a time limit which deems the job ‘inactive’ 9 months after their expiry?

    Thanks again Thomas, I really appreciate your help! 🙂

Viewing 4 replies - 1 through 4 (of 4 total)