Shortcode not resolving
-
Hi there,
It might be that I’m overcomplicating my code, but it seems that my WP site doesn’t know how to resolve the Colorbox shortcode.
Since I have a multilingual site (using mqTranslate), I have to create several version and with a stubborn widget I had to embed everything write into the HTML/PHP codes.
This is the result:
<?php _e('[:en][wp_colorbox_media url="#contactbox" type="inline" hyperlink="Please use the contact form..."][:fr][wp_colorbox_media url="#contactbox" type="inline" hyperlink="S\'il vous pla?t utilisez le formulaire de contact..."][:nl][wp_colorbox_media url="#contactbox" type="inline" hyperlink="Gelieve het contactformulier gebruiken..."]'); ?>
With a bit further on in the file (as shown in the example on your website:
<div style="display:none"> <div id="contactbox" style"padding:10px; background:#fff;"> [cscf-contact-form] </div> </div>
WordPress properly recognizes the language codes for mqTranslate and thuss only shows the shortcode that I’ve written for the specific language. However, it doesn’t resolve the Colorbox shortcode. It might very well be related to the plugin, which is why I’m posting the question here.
Any ideas?
Thanks!
- The topic ‘Shortcode not resolving’ is closed to new replies.