NooTheme Premium WordPress Theme › Forums › JobMonster › Jooble Import plugin
- This topic has 16 replies, 2 voices, and was last updated 3 years, 11 months ago by Carlo_Iva.
-
AuthorPosts
-
4 years ago #1209546
Hello,
I had a new API key form Jooble, showing jobs better. Now I have only 1 problem:
When the user click on "view more" and see the small description of the job offer as agreed with Jooble.org, it is possible redirect the user to the offer on jooble.org, when he click on "apply for this job"?
Thanks
4 years ago #1209604Dear, Please kindly send for me admin account and your problem URL via private reply, i will check to help you.
Best regards.
4 years ago #1209616This reply has been marked as private.4 years ago #1209647Dear.
In Noo Job Imports old version not save Jooble link of job to data, please delete Noo Job Imports old version on your site and download and install Noo Job Imports latest version 1.1.10 in http://wp.nootheme.com/plugin-files/noo-jobs-import.zip
After install Noo Job Imports latest version 1.1.10 please delete all Job import from Jooble on your site and run import job again to save Jooble's job link to data.
After run import job again, please add custom code on your site to change 'Apply for this job' action to redirect to jooble.org offer on their site to apply for job.
add_filter('noo_post_meta', function($value, $post_id, $meta_key){ if('_custom_application_url' === $meta_key){ $_jooble_job_link = get_post_meta($post_id,'_jooble_job_link',true); if(!empty($_jooble_job_link)){ $value = $_jooble_job_link; } } return $value; },10,3);
Best regards.
3 years, 12 months ago #1209695Hello,
thanks for your reply.
I did how you indicate, but after run the search of job, I had back this message, as un the attached image.
And the, in which php file I need to ad that code? And after which string?
Thanks
Attachments:
You must be logged in to view attached files.3 years, 12 months ago #1209706I was thinking, that it would be better the redirect from main listing job page. When user click on view more, is going directly to Jooble.org offer.
Thanks
3 years, 12 months ago #1209722Hello,
I solved the error in the plugin at line 1392 like that:
$job_link = isset($info_job->link) ? $info_job->link : '';instead of$job_link = isset($info_job['link']) ? $info_job['link'] : '';Tell me please if this is correct, but know plugin is working.I need only the last help about this jooble listing issue:As in the previous message, I would prefer when the user click on view more(in the main job listing page), be direct to Jooble.org offer.Thanks3 years, 12 months ago #1209732Dear, I will check error and fix in Noo Jobs Import plugin again.
If you want redirect to Jooble when click to view more button, please add custom PHP code to file functions.php of your theme
add_filter('post_link', function($permalink, $post){ if(is_admin() || 'noo_job' !== get_post_type($post)){ return $permalink; } $_jooble_job_link = get_post_meta($post,'_jooble_job_link',true); if(!empty($_jooble_job_link)){ return $_jooble_job_link; } return $permalink; },10,2);
best regards.
3 years, 12 months ago #1209734Hello,
I tried add that code in: wp-content, themes, child-theme, functions.php (I paste in the code at the end);
then, I tried in: wp-content, themes, noo-jobmonster theme, functions.php (I paste in the code at the end);
then I even tried in: wp-content, themes, noo-jobmonster theme, functions_custom.php (I paste in the code at the end);
but I couldn't make it works. Everytime when I tried to click on viewmore in the job offer, site didn't send me to jooble.org, but I landed in jobmonster view job offer page.
Am I wrong with the location in the php file??
Many Thanks.
3 years, 12 months ago #1209748Please kindly send for me admin account and your site URL via private reply, i will help you to add custom code.
Best regards.
3 years, 12 months ago #1209752This reply has been marked as private.3 years, 12 months ago #1209757This reply has been marked as private.3 years, 12 months ago #1209762This reply has been marked as private.3 years, 11 months ago #1209804Dear, I have login and add custom code in file functions.php but i not see all job on your site have data '_jooble_job_link' You have delete all job on your site and re-import job form Jooble ?
3 years, 11 months ago #1209807Hello,
I did, but the new Jooble API key is not working as I though: still return only few lines, but the first 3 of the job offer instead of casual lines. That is why I would prefer redirect the user directly from mysite main job page to jooble.org after clicking on the "viewmore" botton.. So the problem still their API code?
Many Thanks for the help.
3 years, 11 months ago #1209809Yes, the Jooble API return only few lines of job description.
Best regards.
3 years, 11 months ago #1209826ok,
thanks anyway.
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.