• Resolved David

    (@miladk)


    Hi, i am using the geoswitch plugin to show different content to certain IP’s. But because i am using the litespeed plugin the pages are cached so the plugin does not work accurate.
    I have tried to use the ESI feature for the shortcodes of the plugin but it does not work because the shortcodes are like these:

    [geoswitch]
    [geoswitch_case country_code=’us’]
    Custom CONTENT
    [/geoswitch_case]
    [/geoswitch]

    How should i apply the ESI code with these shortcodes to work properly ?

    Litespeed Report Code: THOSFMTR

Viewing 6 replies - 1 through 6 (of 6 total)
  • stanley@litespeed

    (@stanleylitespeed)

    Hi @miladk, may I know plugin name and link? We can give you feedback after the testing. Also, what if you put ESI at start of the shortcode?

    Thread Starter David

    (@miladk)

    Plugin name: Geocode Switch
    Plugin Link: https://www.ads-software.com/plugins/geoswitch

    When i put esi at the start of the shortcode the 2 closing shortcodes will show on my website like this:

    [/geoswitch_case]
    [/geoswitch]

    stanley@litespeed

    (@stanleylitespeed)

    Please try to use some shortcode creator, for example shortcoder to wrap the start-end shortcode into a single shortcode.

    Thread Starter David

    (@miladk)

    Unfortunately the shortcoder plugin could not help me, because the 2 start shortcodes won’t work when wrapped into a single shortcode

    stanley@litespeed

    (@stanleylitespeed)

    Could you show me your shortcode content?

    Plugin Support LiteSpeed Lisa

    (@lclarke)

    Hi,

    Do you still need help with this? If so, please provide the previously requested information.

    I’m going to mark this topic “Resolved” for now, but will re-open it if we hear from you again.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Creating ESI shortcode with geoswitch plugin’ is closed to new replies.