Shortcode problem!
-
The following shortcode will not work!
function shortcode_add_js( $atts, $content ) { return $content; } add_shortcode( ‘add_js’, ‘shortcode_add_js’ );
[add_js]
var a;
a[0] = ‘debug’;
alert(a[0]);
[/add_js]The problem is char “[” and “]” are used by shortcode syntax!
How to solve this problem?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Shortcode problem!’ is closed to new replies.