• Is it possible to limit the search with hidden fields? in the normal search you can add a hidden form field to only search specific types but I cant see a way to do this with the plugin. For example
    – General site search, works fine, searches everything
    – staff only search, need it limit the search bar in the staff section to only search staff post types. Cant see a way to do this without the user manually changing the options, which means deselecting 15 cat types, one by one, which isnt user friendly.

    Maybe this is doable with a small line of jQuery?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter webfeat

    (@webfeat)

    thinking about it, and looking at the code I dont see a way to do it, perhaps having the option to create different Ajax search bars would be a nice way around this but looks to be out of the current scope of the plugin.
    would like to have it as a feature request if its not possible right now 🙂

    Plugin Author wpdreams

    (@wpdreams)

    Hi!

    This should be actually doable with a small jQuery snippet I believe. For that however I have to see the exact search, and have to know the exact conditions on when it should work this way or that way.

    Making multiple search bars is a Pro version feature, for now I think I will leave it that way, as I almost can’t keep up with the support with a single search instance 🙂

    Thread Starter webfeat

    (@webfeat)

    fair enough on the multi bar option but for the restricting, could you not Jquery to see if hidden field Cat is there, and if so, only use the cats listed? deselecting all the defaults. Then it could easily be dynamic.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Limit search depending on page’ is closed to new replies.