Shortcode conflicts

My plugin provide shortcodes like this:

[cfgeo return=”city”] – returns city name

[cfgeo include=”us”]Text only seen in the US country[/cfgeo] – returns this text only from the visitors in the US.

If I place shortcodes in the content like this:

<div>[cfgeo return=”city”]</div>

<div>[cfgeo include=”us”]Text only seen in the US country[/cfgeo]</div>

WordPress made error and parse it like this:

<div>[cfgeo return=”city”]</div><div>[cfgeo include=”us”]Text only seen in the US country[/cfgeo]<div>

That mean all between first chortcode and closed state of the shortcodes are parsed like one big shortcode.

[cfgeo return=”city”]EVERYTHING INSIDE[/cfgeo]

And that made a error.

How and do I can avoid this?

Read more here:: Shortcode conflicts

Leave a Reply

Your email address will not be published. Required fields are marked *