Title: Search Parameter
Last modified: January 7, 2021

---

# Search Parameter

 *  Resolved [Parmen](https://wordpress.org/support/users/parmen/)
 * (@parmen)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/search-parameter/)
 * Works only in AND mode, how to make it work in OR mode?
 * I want to return all posts containing Montana OR Ohio, not posts containing Montana
   AND Ohio.
 * Seems that the OR / AND radio boxes do not work with the search parameters.
 * Thank you

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

 *  Plugin Author [PickPlugins](https://wordpress.org/support/users/pickplugins/)
 * (@pickplugins)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/search-parameter/#post-13884375)
 * Could you please share the post grid URL to see how you trying to use search 
   parameters?
 * Please note default option may not works for the advance search result, in this
   case, you can use filter hook available for override search parameters, please
   see this documentation
 * [https://pickplugins.com/documentation/post-grid/filter-hooks/post_grid_query_args/](https://pickplugins.com/documentation/post-grid/filter-hooks/post_grid_query_args/)
 * Regards
 *  Thread Starter [Parmen](https://wordpress.org/support/users/parmen/)
 * (@parmen)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/search-parameter/#post-13884672)
 * Thank you,
 * Here is an example
 * [https://www.bg.news/post_grid/горна-оряховица/](https://www.bg.news/post_grid/горна-оряховица/)
   
   or just [https://www.bg.news/горна-оряховица/](https://www.bg.news/горна-оряховица/)
 * I would like to be able to select the search argument for any particular query,
   so that in one case it would return горна AND оряховица, in another PG page –
   горна OR оряховица, just like this is the case with the taxonomy selector. If
   I override the search parameter with a hook this will affect all PG queries, 
   which is not desirable.
 * PS. It would be nice if you offer this feature in the Pro version, then I would
   certainly go for it. Also the reference page under the search parameter field
   doesn’t lead to any helpful page
    [https://codex.wordpress.org/Class_Reference/WP_Query#Search_Parameter](https://codex.wordpress.org/Class_Reference/WP_Query#Search_Parameter)
    -  This reply was modified 5 years, 5 months ago by [Parmen](https://wordpress.org/support/users/parmen/).

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

The topic ‘Search Parameter’ is closed to new replies.

 * ![](https://ps.w.org/post-grid/assets/icon-256x256.gif?rev=3295086)
 * [Post Grid](https://wordpress.org/plugins/post-grid/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-grid/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-grid/)
 * [Active Topics](https://wordpress.org/support/plugin/post-grid/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-grid/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-grid/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Parmen](https://wordpress.org/support/users/parmen/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/search-parameter/#post-13884672)
 * Status: resolved