NooTheme Premium WordPress Theme › Forums › JobMonster › Hide expired offers from the Archive page
- This topic has 7 replies, 2 voices, and was last updated 2 days, 20 hours ago by aureludo.
-
AuthorPosts
-
1 month, 1 week ago #1221948
Hi Jackie
I would like to hide expired job offers older than 1 year from the archive page and searches. But still leave them in the database for natural referencing π
Where can I find this query to do this? and how to modify it?
Thanks in advance
Ludovic
1 month ago #1221954Hi.
Thank you for contacting us.
To hide the expired job offer, please go to Customize/ Job & Company/ Job listing and scroll down, you will see the option "Shoe Expired Job". Please turn off that option. https://prnt.sc/WW4YhxwmS66i
Regards.
1 month ago #1221956Hi Jackie,
Thanks !
I just tested on my child theme to put on OFF but it didn't change anything, I thought there was a change of a php file, so I tested with the main theme but it still displays the expired offers in the archives π
can you look on the test server and tell me which files to modify on my production server?
Regards
1 month ago #1221957This reply has been marked as private.1 week, 2 days ago #1222005Hi.
I have checked your site with the expired job:
https://ev.dev-toursncrea.fr/?post_type=noo_job&p=14373
The expired job: "Moniteur dβatelier / Technicien cycle Paris" doesn't appear in the job search and archived job page when you turn off the "show expired" job in the customize. https://prnt.sc/C8PYDmVP0oRd
Please recheck it.
Regards.
1 week, 2 days ago #1222009Hi Jackie,
Happy New Year π
Thanks !
I just understood I had not put a date in "Offer expiration date" but in "Ad end date".
Do you have an SQL query to take the "Ad end date" and put it in "Offer expiration date" or tell me the fields so I can do it on my side?
Is there a way to still display expired jobs on another page or with a parameter in the url for example? because I often search for an expired offer to renew it from /city/paris for example where "paris" is the department of my search
how is the redirection then managed if the offer has expired? 404 error or redirection to the offer archive page?
Thank you
2 days, 21 hours ago #1222026Sorry, do you want to copy the closing value to the expired field on the job? https://prnt.sc/jawLN2NpnImx
I'm unsure, but I'll help you check the source code.
To display expired jobs on another page, a lot of source code needs to be changed. We can help you display the expired jobs on another page with the URL parameter, but for the search page, it also needs to change the query source code with the URL parameter.
Regards.
2 days, 20 hours ago #1222028Hi Jackie,
Thanks !
Yes that's right, I'm going to find a query or do it manually because otherwise it gives me 404 errors, I have to manage the redirects manually otherwise I'm going to lose my SEO with the 404 errors
for expired offers I don't need the search engine because it's just for me.
Or maybe an even simpler idea comes to me to avoid 404 errors π How to hide closed offers in the archive page? like that the offers disappear for visitors since they are closed but still accessible for Google and no 404 error π
It must be simpler, just the query of the archive page and search engine to modify right?
Regards
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.