Enable Search by Distance

This topic contains 5 replies, has 2 voices, and was last updated by  Simone 10 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #17700

    Kenny Eliason
    Expired Member
    Post count: 54

    I know there is probably some instruction somewhere on this, but for the life of me I cannot find where to enable the search by distance function. Can anyone help? Here’s the site:

    http://musclecars.wpengine.com/directory/

    Thanks!

    #17711

    Simone
    Expired Member
    Post count: 3515

    Hello Kenny, to enable the search by distance, go to your custom field settings (e.g. Place Settings) and then click the Advanced Search tab. Then you can drag the “Search by distance” field and it will appear in the search (see attach.).

    #17716

    Kenny Eliason
    Expired Member
    Post count: 54

    Awesome. I’ve got that configured as you stated. You da man. Follow up question… Is there a way to call the search form outside of a widget? Perhaps with a function?

    Thanks!

    #17718

    Simone
    Expired Member
    Post count: 3515

    Yes, you can output a widget with the following code:

    
    
     <?php the_widget( 'geodir_advance_search_widget' ); ?> 
    
    #17719

    Kenny Eliason
    Expired Member
    Post count: 54

    Freak… awesome-ness. Thanks Simone!

    #17720

    Simone
    Expired Member
    Post count: 3515

    you’re welcome, anytime 🙂

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount