• For our Webseite http://www.triptroll.de I coded a shortcode. This shortcode takes a parameter. I need to use a closing square bracket in this attribute.

    e.g. [gallery foo=”[www.test2.com]” bar=”Hello”]

    Obviously WP things the shortcode is finished at the first closing bracket. Any idea how to solve it?

    Thanks!

Viewing 1 replies (of 1 total)
  • It might work to use a different character, like a pipe | for example, and substitute the square bracket in the shortcode function.

Viewing 1 replies (of 1 total)

The topic ‘Shortcode: Use square bracket as attribute’ is closed to new replies.