• If we want to disable location search in the ‘advanced search form’, we can turn off all the relevant options in Settings > Formatting > Search Form.

    But if we do not first turn off “Show distance options”, and instead only turn off “Show geolocation search”, the former option becomes hidden (whilst still enabled). In templates/search/form-advanced.php, it is tested for to determine if the location section of the search form should be included. This results in a contentless section in the form, with just the heading “Location Options”.

    The test in the template file is incorrect. It should include a test for search_geo_advanced, and if that is false, disregard whatever search_geo_units is saying.

    • This topic was modified 2 months, 2 weeks ago by jqz.
    • This topic was modified 2 months, 2 weeks ago by jqz.
  • You must be logged in to reply to this topic.