problem with shortcodes
-
Hi,
I have created a custom shortcode te get bloginfo in my html content.
Something like this works great:<a href="#" class="home-block" style="background-color: #42526c; background-image: url('[bloginfo key="template_directory"]/images/wardrobe.jpg');">Wardrobe</a>But, when I switch back and forth between wysiwyg editor and text editor, my HTML breaks and I get this as a result:
<a href="#" class="home-block" style="background-color: #42526c; background-image: url('[bloginfo key=;" template_directory="" images="" wardrobe="" jpg="">Wardrobe</a>Any idea why this is happening and how to solve this?
http://ww.wp.xz.cn/extend/plugins/preserved-html-editor-markup/
The topic ‘problem with shortcodes’ is closed to new replies.