• Resolved DenisCGN

    (@deniscgn)


    Hello,
    how to use this plugin? Is there any example?
    I like to use the standard WordPress search, this should be the wp_query I think.
    And I have custom fields in my posts … lat and lng.
    What do I have to do now, that the results page shows my results PLUS they match the geo search.
    Hope to get help,
    Thanks,
    Denis

Viewing 1 replies (of 1 total)
  • Plugin Author jhackett1

    (@jhackett1)

    Hello – you will probably need to customise your theme’s search PHP templates to make use of the plugin in that way.

    Often, a WP theme includes:
    search.php, which displays search results. You may want to display distances here
    searchform.php, which renders the search form itself. You might want to add a postcode input here in addition to your keyword input.

    Docs are here.

    Finally, you’ll want to override the search query itself in functions.php to handle the geo information. It will look something like this.

    What you want to do with the plugin really depends on the effect you want to achieve—please do post a link here when you get it working and we can add it to the docs.

    Hope that helps!

    • This reply was modified 3 years, 4 months ago by jhackett1.
Viewing 1 replies (of 1 total)
  • The topic ‘How to use this plugin’ is closed to new replies.