• Resolved mirefoot

    (@mirefoot)


    I’d like to create a link such as

    <h1><a href="/marinas/?wpv-country=[geoip_detect2 property="country.name" default="(country could not be detected)" lang="en"]">Marinas</a></h1>

    It would then look like

    <h1><a href="/marinas/?wpv-country=Australia">Marinas</a></h1>

    But it doesn’t work, are you able to help?

    https://ww.wp.xz.cn/plugins/geoip-detect/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Interesting use-case. The issue is that wordpress confuses the ” inside and outside the shortcode.

    You can write it like this:

    <h1><a href='/marinas/?wpv-country=[geoip_detect2 property="country.name" default="(country could not be detected)" lang="en"]'>Marinas</a></h1><br />

    or this should also work:

    <h1><a href="/marinas/?wpv-country=[geoip_detect2 property='country.name' default='(country could not be detected)' lang='en']">Marinas</a></h1><br />
    Thread Starter mirefoot

    (@mirefoot)

    Fantastic, worked great thank you.

    Thread Starter mirefoot

    (@mirefoot)

    Do you have any idea how I would add the same to the menu?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Create URL with Shortcode as a parameter’ is closed to new replies.