NooTheme Premium WordPress Theme › Forums › JobMonster › Expired jobs still showing
Tagged: expiring jobs, jobsmonster
- This topic has 12 replies, 2 voices, and was last updated 2 years, 4 months ago by Jackie.
-
AuthorPosts
-
2 years, 5 months ago #1218551
Good morning
Can you assist we have started to have jobs still showing after expired, The expiry could be after the expiry date or after the 60days listing time. This had been working fine until a few weeks ago. We have checked customizer, double checked date and either using import or manual load they still show.
Example page https://jobs.antibodyresource.com/companies/university-of-oxford/
Please advise
David
2 years, 5 months ago #1218575Hello.
Thank you for contacting us.
Do you want to hide the expired job? Please go to customize/ Job & Company/ Job list and turn off the "Show expired job" option. https://prnt.sc/8f2VUaQMZDmn
Thanks.
2 years, 5 months ago #1218604This reply has been marked as private.2 years, 5 months ago #1218614Hello.
Please give us your site URL, and admin account, we need to access your site.
And please let us know if the job is displayed or not displayed when you import from XML or CSV. We will help you check the format and source code to know more about that.
Thanks.
2 years, 5 months ago #1218620This reply has been marked as private.2 years, 5 months ago #1218627This reply has been marked as private.2 years, 5 months ago #1218636This reply has been marked as private.2 years, 5 months ago #1218660Hi again.
You mean the job expired auto-close after 4 days duration. We have checked that function, it also depends on the company duration package. If your package expired, the job will close.
Please recheck it.
Thanks.
2 years, 5 months ago #1218676This reply has been marked as private.2 years, 5 months ago #1218690Hi again.
If you want to add the expired info for the job without an employer package, expires or closing info, you can edit the function jm_set_job_expired() at this file wp-content/themes/noo-jobmonster/framework/job/job-expired.php.
Please recheck it.
Thanks.
2 years, 4 months ago #1218718This reply has been marked as private.2 years, 4 months ago #1218732<code>if ( ! function_exists( 'jm_set_job_expired' ) ) : function jm_set_job_expired( $job_id = '' ) { if ( empty( $job_id ) ) { return false; } $_ex = noo_get_post_meta( $job_id, '_expires' ); $employer_id = get_post_field( 'post_author', $job_id ); $package = jm_get_job_posting_info( $employer_id ); if ( empty( $_ex )) { if (isset( $package[ 'job_duration' ] )) { $_expires = strtotime( '+' . absint( @$package[ 'job_duration' ] ) . ' day' ); update_post_meta( $job_id, '_expires', $_expires ); $closing = noo_get_post_meta( $job_id, '_closing' ); if ( empty( $closing ) ) { $closing = $_expires; update_post_meta( $job_id, '_closing', $_expires ); } } else { $_expires = strtotime( '+' . absint( 4 ) . ' day' ); update_post_meta( $job_id, '_expires', $_expires ); $closing = noo_get_post_meta( $job_id, '_closing' ); if ( empty( $closing ) ) { $closing = $_expires; update_post_meta( $job_id, '_closing', $_expires ); } } } } endif;</code>
Hi again.
You can try the function above to fix that issue. We are set 4 days for an expired job.
Thanks.
2 years, 4 months ago #1218733 -
AuthorPosts
You must be logged in and have valid license to reply to this topic.