Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Christian Rüggeberg

    (@arkonisus)

    Ok i will answer it for myself 🙂 the magic word is “filter” …

    function set_job_manager_custom_filters( $attr ) {
    
    	if( !empty($_REQUEST['search_category']) ) {
    		$attr['categories'] = sanitize_text_field( $_REQUEST['search_category'] );
    	}
    
    	if( !empty($_REQUEST['filter_job_type']) ) {
    		$attr['job_types'] = sanitize_text_field( implode( ',', array_values( $_REQUEST['filter_job_type'] ) ) );
    	}	
    
    	return $attr;
    }
    add_filter('job_manager_output_jobs_defaults','set_job_manager_custom_filters');

    Plugin Contributor Adam Heckler

    (@adamkheckler)

    Glad to hear you got things working!

    Let me know if there’s anything else you need. 🙂 Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Search Category in Custom Search doesn't work’ is closed to new replies.