• Resolved coffeendonut

    (@coffeendonut)


    Hi, is it possible to show content for a city via the [geoip_detect2 property=”city”] shortcode? Or perhaps through CSS/HTML somehow?

    I noticed the in ‘API Usage Examples’ there’s a ‘Redirect depending on country’ PHP snippet. If I have to perhaps I can do something similar for city. But what WordPress .php file does the snippet belong to as it doesn’t say?

    Thanks!

Viewing 1 replies (of 1 total)
  • Maybe if you use the shortcode inside the CSS attribute?

    <div class="city-[geoip_detect2 property='city']">Text that will be shown/hidden via css</div>

    Otherwise, you’ll need to create your own shortcode using the functions of this plugin for this.

Viewing 1 replies (of 1 total)

The topic ‘city specific content using shortcode?’ is closed to new replies.