Support » Plugin: GeoTargeting Lite - WordPress Geolocation » Adding javascript within shortcode?

  • Hi,

    Can be added/executed correctly javascript code by this plugin ?
    I am trying it like this:

    <?php echo do_shortcode(‘[geot country=”UK”] <script type=”text/javascript”………….</script> [/geot]’);?>

    This breaks code and site does not works at all.
    Anyway, if i add some html code within shortcode, it works fine.

Viewing 1 replies (of 1 total)
  • Plugin Author Damian


    usually wordpress itselfs if the one that remove javascript tags. Try creating a shortcode for that javascript and place the shortcode you create inside ours.

Viewing 1 replies (of 1 total)
  • The topic ‘Adding javascript within shortcode?’ is closed to new replies.