GEO my WP Support

Use this forum for technical support and general questions related to GEO my WP plugin and its core add-ons only. For technical support and general questions related to any of the premium extensions please open a new premium support ticket.

[Resolved]Shortcode to extract current_location

Home Forums Support Shortcode to extract current_location

This topic contains 1 reply, has 2 voices, and was last updated by  Eyal Fitoussi 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #59407

    parkerct
    Participant

    Hi Eyal,
    I’m sure you’ve been asked about this before but I can’t find it.
    I would like to have a shortcode that extracts current location as raw text. All I need is city, state and country, preferably with parameters to select which of these to get.
    Thanks

    #59419

    Eyal Fitoussi
    Keymaster

    Hello Chris,

    I have already provided a solution via the support ticket, but I will post it here as well for other users to benefit from it:

    There isn’t a shortcode to output the current location as raw data but you can use the script below. Place it in the functions.php file of your theme then use the shortcode [my_current_location_shortcode] ( You can rename the shortcode in the function as you wish ) to display the raw data.

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

You must be logged in to reply to this topic.