Support » Plugin: Woody code snippets - Insert Header Footer Code, AdSense Ads » Pass square brackets as parameters

  • I am trying to pass a parameter to a snippet that contains a square bracket. e.g.
    [wbcr_php_snippet id=”1815″ p1=”[stuff]” p2=”my stuff”]
    when I do this, I get an error that says
    [wbcr_php_snippet]: PHP snippets error (not passed the snippet ID)

    If I remove the square brackets from p1, then the snippet is called OK (but doesn’t work as I need the square brackets!) I have tried escaping, but it makes no difference.

    Is there a way to make this work?

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

    (@webtemyk)

    Hello.

    Unfortunately, the shortcode syntax does not support the use of square brackets inside the shortcode.

    Surely you can do without square brackets in the parameters. Tell us more about your task, maybe I can help you

Viewing 1 replies (of 1 total)
  • The topic ‘Pass square brackets as parameters’ is closed to new replies.