Viewing 3 replies - 1 through 3 (of 3 total)
  • I am looking to do this too.

    Would I be able to do this with the Premium Settings add on?

    Plugin Author Eyal Fitoussi

    (@ninjew)

    @erinlyus and @tangpage,
    This feature indeed available with the Premium Settings add-on. However, It shouldn’t be too difficult to add it if you know the way around some PHP, MYSQL and WordPress filters.

    1) you will first need to add an input text field to the search form.

    2) You will need to use a filter provided by GEO my WP to modify the clauses ( where clause ) of the search query to also search by the keywords submitted.
    The filter below can be found in geo-my-wp/plugins/posts/includes/gmw-pt-search-query-class.php ( line 85 ):

    apply_filters( 'gmw_pt_location_query_clauses', $clauses, $this->form );

    Hope it helps.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘if Search form has a text field to filtering post title, or post content…’ is closed to new replies.