Buggy shortcode-function
-
In a shortcode-function you should use a return statement and never an echo!
function footag_func( $atts ) { return "foo = {$atts['foo']}"; } add_shortcode('footag', 'footag_func');
Please check on http://codex.wordpress.org/Function_Reference/add_shortcode. If you do as I describe, your plugin works fine.
Thanks for your JS-Script anyway.
Greetings
Michel
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Buggy shortcode-function’ is closed to new replies.