• Hello,

    I’ve a problem concerning the functionality of the plugin when the date of a job passed the date until it’s valid. So in my example verison I created 5 job offers, while two of them reached the date when they are not vaild anymore.

    Even when using the shortcode [job-postings show_filters=”true” hide_past=”false”]
    the jobs which passed the validation date are not listed in the preview list.

    See: https://bda-aerztevermittlung.de/stellenangebote-neu/
    (There should be 5 jobs listed, but only 3 are shown, with valid dates)

    In the general settings of the plugin I’ve activated the related option:
    Zeige “Angebot abgelaufen” wenn das Angebot endet.

    I want to show also expired job offers, with a special notice to users.
    But actually I dont know how to get it done.

    Would be great if you could help me getting it working like expected.

    Thanks a lot and best regards,
    Heiko

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter Heijko

    (@heijko)

    Hi there,

    I could solve the issue concerning the hide_past functionality.

    The problem was located in the plugin file /includes/class_job_single_view.php
    After line 796 where the $out variable is defined for the apply button,
    the dates to be checked for position_valid_through needed to be defined correctly.

    `$out .= ‘<div class=”jobs-row-apply”>’;
    // modified from here
    $job_valid_date = isset( $values[‘position_valid_through’] ) ? esc_attr($values[‘position_valid_through’][0]) : ”;

    $job_valid_date_format = date(‘Y-m-d’, strtotime($job_valid_date));
    // echo(“Job Expiration Date: ” . $job_valid_date_format);

    if( $job_valid_date && ($offer_ended_enabled == ‘on’ && strtotime(’23:59:59′, strtotime($job_valid_date_format)) < date(‘U’) ) ){
    // go on with the original code from here …

    The right functionality can be seen in the job “Test for Expiration:…”
    So from my point of view this topic can be marked as “solved” ??

    Best regards,
    Heiko

Viewing 1 replies (of 1 total)
  • The topic ‘Functionality Hide oder Show Past Jobs’ is closed to new replies.