• Resolved bysidecar

    (@bysidecar)


    Hello, I’m using your plugin for set-up a medical board in my website, but I’ve realized that the keywords I use in search bar only proceed to search in the title of items (jobs or doctors in this case). For example, if I’m searching a cardiologist, I can display the categories, choose category ‘cardiologists’ and plugin shows me the cardiologists in my database. But if I write ‘cardiologist’ in search bar, the result is 0.
    I would like to know how I can do to improve the search process in order to search in every piece of information of every item. I hope you can help me.

    Thanks.

    Regards, María.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author PressTigers

    (@presstigers)

    María,

    It’s default behavior of SJB plugin but you can change it by placing the following code in your activated theme’s functions.php file

    
    /**
     * Modify SJB search default behavior
     */
    function modify_sjb_default_search(){
        remove_filter('posts_search', 'sjb_keywords_search_by_title', 10);
    }
    
    add_action('init', 'modify_sjb_default_search');
    

    Thank you for writing to us. Let us know if you need our further assistance.

    Regards,
    PressTigers

    Thread Starter bysidecar

    (@bysidecar)

    Hello, PressTigers team. Thanks for your quick answer. I have another question: could I extend the search (into the individual job items) to every piece of information in professional features?

    Thanks for your help.

    Regards, María

    Plugin Author PressTigers

    (@presstigers)

    María,

    Yes, you can extend search individual job items. Please first understand SJB code structure and then do customization according to your requirements.

    Thank you for using SJB!

    Regards,
    PressTigers

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Problem with search bar’ is closed to new replies.