Fix For Do Shortcode
-
stripslashes(do_shortcode($options['dialogtext']));
You have the stripslashes in the wrong place, this is probably why contact form 7 doesn’t work, I know it fixed my gravity forms shortcode problem.
do_shortcode(stripslashes($options['dialogtext']));
As well you are using
wp_specialchars
(which is deprecated) you should be usingesc_html
Finally you should register your scripts before enqueuing them so it gives other developers a chance to deregister them, i.e. the fancy box script as this is called by many plugins and can cause conflicts. <– this last one is my 2 cents. Thanks!
- The topic ‘Fix For Do Shortcode’ is closed to new replies.