Near me Button Shortcode

This topic contains 3 replies, has 2 voices, and was last updated by  Paolo 8 years, 1 month ago.

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

Open Support Ticket
  • Author
    Posts
  • #262111

    Zois Koukopoulos
    Buyer
    Post count: 8

    Hello,

    I would like to know if there is a shortcode or another way to display the “Near me” button to a webpage in my website.

    Thank you

    #262239

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    at the moment it can only be added via widget. If you can use PHP in the template you can use the the_widget function

    https://codex.wordpress.org/Function_Reference/the_widget

    Let us know if that helped.

    Thanks

    #262486

    Zois Koukopoulos
    Buyer
    Post count: 8

    Hello,

    Which exactly is the code to achieve that? According to the above link the code to add a widget is something like this <?php the_widget( ‘WP_Widget_Search’ ); ?>

    To add the near me button which is this code?

    Thanks

    #262874

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    <?php the_widget( ‘geodir_near_me_button_widget’ ); ?>

    Thanks

Viewing 4 posts - 1 through 4 (of 4 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