• Resolved cjackson111

    (@cjackson111)


    How can the search form be modified? I’d like to be able to search by Category AND Type. Also, how can categories be hidden if not used in a job listing? I don’t want users to have to scroll through a long list of categories if only a small number are used for jobs.

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

    (@eoinsr)

    Hey,

    I also have the same problem as cjackson111, when it comes to hiding categories when theirs no jobs.

    Thanks,
    Eoin

    • This reply was modified 7 years ago by eoinsr.
    Plugin Contributor jonryan

    (@jonryan)

    You can certainly modify the search form, but it requires both frontside template and javascript modification, as well as modifying the API code. It’s totally doable but you need to have some coding experience.

    As far as hiding categories, I think the issue is that the categories are not part of the api request made with the search, they are generated with the page rendering, so it really has no way of knowing if the search has those categories or not. I realize it’s not idea but it’s how it works right now.

    eoinsr

    (@eoinsr)

    Hey @jonryan ,

    I’ve played around with this for a few days now created a solution for Job categories. This is a coded solution and quick and easy you just need to change false to true as pre screen shots:
    Find this code this is found in wp-content/plugins/wp-job-manager/templates/job-filters.php
    then at the end of the time you will see this line 29.
    I hove not currently found out how to do regions/location yet this should be similar seeing as have the same fields, in the job list section

    • This reply was modified 7 years ago by eoinsr.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Search form’ is closed to new replies.