NooTheme Premium WordPress Theme › Forums › JobMonster › Expired Job Accessible from google and public url
- This topic has 9 replies, 2 voices, and was last updated 5 years, 9 months ago by Anonymous.
-
AuthorPosts
-
5 years, 9 months ago #1068498
We have Expired Jobs off but still it is accessible through google and through URL of the job.
How can we hide it from being displayed anywhere on our site?
5 years, 9 months ago #1068523
AnonymousInactiveTopics: 0
Posts: 3295Hi again,
We got access to your website then checked the expired job.
Please see this link: https://jobs.truckstopcanada.com/jobs/
There are only 4jobs which still activate to display. Other expired jobs are invisible.
You should check it again, then give us your expired job directly.
Thank you.
NooTheme
5 years, 9 months ago #1068524This reply has been marked as private.5 years, 9 months ago #1068623
AnonymousInactiveTopics: 0
Posts: 3295Hi again,
Please see this link: https://jobs.truckstopcanada.com/jobs/?logged_in=1
We don't see any expired Job here. About your link, it seems that you view this expired job by clicking View button in Dashboard.
The expired job still exists but it doesn't display on front page.
Please check it again.
Best Regards,
NooTheme
5 years, 9 months ago #1068655This reply has been marked as private.5 years, 9 months ago #1068684
AnonymousInactiveTopics: 0
Posts: 3295Hi again,
Because your job is an index on Google Index before it expired. That's the reason why you still find this job from Google. Unless you delete the job link on your website.
Hopefully, you understand this logic.
Thank you.
NooTheme
5 years, 9 months ago #1068954Hi,
I found a better solution to this, if you feel you can integrate it to theme
for now I have added this at functions.phpfunction expired_job_noindex(){ $job_id = get_the_ID(); $closing_date = get_post_meta( $job_id, '_closing', true ); $closing_date = empty( $closing_date ) || is_numeric( $closing_date ) ? $closing_date : strtotime( $closing_date ); $is_expired = ( 'expired' == get_post_status( $job_id ) ) || ( ! empty( $closing_date ) && $closing_date <= time() ); if($is_expired){ echo ''; } } add_action('wp_head', 'expired_job_noindex');
Hope this would be useful.
5 years, 9 months ago #1068998
AnonymousInactiveTopics: 0
Posts: 3295Hi again,
Thank you so much for this solution.
We will consider adding your Custom Code in our website soon.
Thanks so much and Have a nice day
NooTheme.
5 years, 9 months ago #1069009Correction in above code:
/** Add No Follow to Expired Jobs */ function ash_expired_job_noindex(){ $job_id = get_the_ID(); $closing_date = get_post_meta( $job_id, '_closing', true ); $closing_date = empty( $closing_date ) || is_numeric( $closing_date ) ? $closing_date : strtotime( $closing_date ); $is_expired = ( 'expired' == get_post_status( $job_id ) ) || ( ! empty( $closing_date ) && $closing_date <= time() ); if($is_expired){ echo '<meta name="robots" content="noindex">'; } } add_action('wp_head', 'ash_expired_job_noindex');
5 years, 9 months ago #1069038
AnonymousInactiveTopics: 0
Posts: 3295Hi again,
Thanks for your feedback.
Our developer studied your Custom Code carefully but this source code only helped you to remove Job Expired on your website not Google.
They recommended us some ways to remove an expired Job on Google:
https://developers.google.com/search/docs/data-types/job-posting#remove-job-postings
You can see this image: https://prnt.sc/mo1k86 these are 3 ways to remove a job. Currently, we also have a custom field (field_close - time which a job is expired). In the database, when your job is expired, this field will be label "vaildThrough". This is a signal which Google can understand this job is expired then remove it.
Also, please refer to this link: https://blog.ongig.com/recruitment-seo/google-penalty-for-not-updating-job-posting-structured-data
Please check it again.
Best Regards,
NooTheme
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.