GEO my WP Support

Use this forum for technical support and general questions related to GEO my WP plugin and its core add-ons only. For technical support and general questions related to any of the premium extensions please open a new premium support ticket.

[Not resolved]State Dropdown – Where to Put Filtering Results Code

Forums Support State Dropdown – Where to Put Filtering Results Code

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #54888

    Hi There!

    I’ve been using your Tips & Scripts doc (http://docs.tempform.wpengine.com/filter-results-by-state) to try to add a Dropdown list for states in my search form.

    At the end, though, as you talk about filtering results, I’m hitting a bit of a snag. You say to add the filter

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

    To the file gmw-pt-search-functions.php – but I don’t have any files by that name. I have a gmw-pt-functions.php and a gmw-pt-search-query-class.php – should I add it to one of them?

    I’ve played around a bit, but I’m not entirely clear on what that section is doing, so I can’t tell if I have it working or not!

    #54948

    Hello Hunter,

    To the file gmw-pt-search-functions.php – but I don’t have any files by that name. I have a gmw-pt-functions.php and a gmw-pt-search-query-class.php – should I add it to one of them?

    This tutorial is not up to date. So yes, the filter mentioned can now be found in geo-my-wp/plugins/posts/includes/gmw-pt-search-query-class.php.

    #54980

    Got it! I believe I made the updates correctly, but I’m encountering an issue.

    I have both Zip Code & State Dropdown as search options. Both work fine if I only enter data in one field, but if I try to use both fields, then I get no results returned.

    Any chance you might be able to help me find where I went wrong?

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

You must be logged in to reply to this topic.