The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

WP Find Your Nearest
[resolved] FYN Premium: Restricting search results to "Within Distance" (4 posts)

  1. meltdown2
    Posted 3 years ago #

    Hello - I've just purchased the Premium FYN. I would like to restrict the search results to, in this case, cooks located within a 5-mile distance. I've added the following code to my pre-selected Search Results Page:

    [FYN_searchform show_postalcode_search=1 show_within_distance=1]

    I see that "Unlimited" is automatically placed within the dropdown list. As I would like just the one, 5-mile option, is it possible to remove it?

    Any help would be appreciated :)



  2. meltdown2
    Posted 3 years ago #

    in getFYNSearchForm.php I was able to comment out the following line:

    //$form .= "<option value=\"0\">Unlimited</option>\n";

    This worked in FF but didn't seem to in IE or Safari :(

  3. meltdown2
    Posted 3 years ago #

    I see now that if I comment-out both lines, the "Unlimited" option is removed:

    //$form .= "<option value=\"0\"></option>\n";
    //$form .= "</select></div>\n";
  4. Adam Sargant
    Posted 3 years ago #

    Hi... for premium support it is probably best to email me direct as I don't receive automatic notification of new posts here

    But there is now way currently to remove the unlimited option other than the way you suggest (though I'm not sure that removing the closing </select> tag is a good idea)... this will likely cause problems with future upgrades though, requiring you to edit everytime an upgrade comes out

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Find Your Nearest
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.