shortcode not working
-
Please consider this change in
kc.front.php:L420
:$pattern = get_shortcode_atts_regex();
Your current pattern does not match WordPress so some shortcode attributes are not parsed. Your pattern expects attributes to be wrapped in double quotes. While the codex examples have double quotes, they are only required for attributes that have spaces. This is perfectly valid:
[my_shortcode id=1 color=red title="My Page"]
But those first 2 attributes will be stripped by your regex.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘shortcode not working’ is closed to new replies.