• Resolved dutchwyse

    (@dutchwyse)


    Dear sir / madam,

    I installed your plugin on https://staging.lp-reintegratie.nl/vacatures.
    When nothing is filled in the search shows all jobs.
    But when i enter a keyword and try to search it finds nothing. For example i have a job called Bakker but when i enter that as keyword nothing gets found.

    When i search on categroy or location the search gives the expected results.

    I deactivated all other plugins and went back to the theme twenty seventeen. But it reacts the same over there.
    I also tried to install the plugin again but it didn’t make a difference.

    I hope you can point me in the right direction.

    Regards,

    Tjardo

Viewing 5 replies - 1 through 5 (of 5 total)
  • Same problem here. No jobs will be found no matter what keyword has been used. Location field is working properly. But keyword field is not working.

    Any idea how to fix this?

    • This reply was modified 7 years, 4 months ago by Magma.

    @akimosan @dutchwyse If the value you’re trying to search is in the meta values, WPJM now defines by default only specific meta keys to search … you can try adding this to your child theme’s functions.php file or in the Code Snippets plugin to force WP Job Manager to search all meta keys (or add your own):

    
    add_filter( 'job_listing_searchable_meta_keys', 'smyles_allow_search_all_meta' );
    function smyles_allow_search_all_meta( $meta_keys ) {
    	// Below is the default array of meta keys that will be passed
    	// to search.  You can either add your own to the array, or return
    	// false to force WP Job Manager to search all meta keys
    	//
    	// $meta_keys = array(
    	//	'_job_location',
    	//	'_company_name',
    	//	'_application',
    	//	'_company_name',
    	//	'_company_tagline',
    	//	'_company_website',
    	//	'_company_twitter',
    	//);
    	// We can return FALSE to force to search all meta keys:
    	$meta_keys = false;
    	// You can also add your own meta keys to search like this (just uncomment line below, and comment out or remove line above):
    	// $meta_keys[] = '_my_meta_key1';
    	// $meta_keys[] = '_my_meta_key2';
    	
    	return $meta_keys;
    }
    

    https://gist.github.com/tripflex/45c1097ca991abb100e8ff8247820801

    Thanks for replying. But this code did not work either.
    In my case downgrading to WP Job Manager version 1.25.2 helped. Now the keyword search is working fine again.

    Thread Starter dutchwyse

    (@dutchwyse)

    The code didn’t work for me aswell.
    @akimosan thanks for the tip. I went back to 1.25.3 and it seems to work now.

    I’m having this problem as well. It’s pretty random which words work to get results to show. If I search for a single letter from a job title I’ll get results, but if I add another letter no results will show. I’ve tried the code above — which didn’t have any effect for me — and also reverting to the earlier versions of the plugin as suggested above. Reverting to an earlier version makes no results show at all (before the search), so that’s a show stopper. Any other suggestions for things to try?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Keyword not found’ is closed to new replies.