WordPress.org

Forums

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

  1. meltdown2
    Member
    Posted 2 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 :)

    Thanks

    http://wordpress.org/extend/plugins/wp-find-your-nearest/

  2. meltdown2
    Member
    Posted 2 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
    Member
    Posted 2 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
    Member
    Plugin Author

    Posted 2 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

Tags

No tags yet.