Forum: Bug Reports

This forum is closed for new topics. However, you can still search for a solution in the old topics. For technical support and general questions related to GEO my WP plugin and its core add-ons please use the support forum.

[Resolved]Duplicate search results

Forums Bug Reports Duplicate search results

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #28767
    David Lockie
    Member

    Hi Eyal,

    Having upgraded the plugin and all add-ons on one of our websites the search results page now has two sets of search results.

    One set seems to be coming straight off the back of the “[gmw form=”1″]” form shortcode in the header widget. The second set of results come from the “[gmw form=”results”]” shortcode in the page content itself.

    The map only appears in the first (erroneous) set of results inside the header widget.

    Here’s a link where you can see that.. https://cbhstg.wpengine.com/search-results/?gmw_distance=25&gmw_units=imperial&gmw_address%5B%5D=milton+keynes%2C+uk&gmw_form=1&gmw_per_page=10&gmw_lat=&gmw_lng=&gmw_px=pt&action=gmw_post

    Any ideas?

    Thanks!

    Michael.

    #28776
    m33
    Member
    #28775

    Hi,
    There are new shortcodes that you can use in order to overcome this this conflict. Using the shortcodes below you can place any of the form elements anywhere on the page:
    1) [gmw search_form=”form_id”] – display the search form only
    2) [gmw map=”1″] – display the map ( “Display Map” feature in form editor needs to be set to “Using shortcode”.
    3) [gmw search_results=”form_id”] – display the search results ( with the map if “Display map” set to “In results”.

    Give it a try and let me know if that works.

    Thank you

    #28774
    David Lockie
    Member

    That worked a treat.

    Thanks Eyal.

    #28773
    m33
    Member

    I followed this and am only getting a blank page now.

    example:
    [gmw map=”1″] (set to “Using shortcode”)
    [gmw search_form=”form_id_1”]
    [gmw search_results=”form_id_1”]

    When go to the page, nothing is there.

    #28772
    m33
    Member

    ok, I’ve got it working by using the following three codes:

    [gmw map="1"](set to “Using shortcode”)
    [gmw search_form="1" name="form_id_1"]
    [gmw form="results"]

    However, even though I have the “display list of results ” and ” enable page load features” checked on the page load tab of form 1, I don’t get any results on load.

    I do get perferct results when the submit button is checked.

    any ideas? I’m on 2.6

    #28771
    m33
    Member

    Any word on this? Really need this to work! Thanks

    #28770

    By accident I use form_id_1 in the example above. It should really be the ID of the form that you are using. So if your form ID is 1 your shortcodes should be:
    [gmw map=”1″]
    [gmw search_form=”1″]
    [gmw search_results=”1″]

    Can you post a screenshot of your Page Load tab ?

    #28769
    m33
    Member

    Perfect. Thank you!

    #28768

    You are welcome.

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

You must be logged in to reply to this topic.