At the moment, I'm running WordPress v3.2.2 (soon to upgrade to v3.4.2), and am trying to insert shortcode to insert Issuu into a text widget on our sidebar. The WordPress plugin I installed and am trying to use is WP Issuu, where it says I simply need to take the embed shortcode off of the article and insert it into any post or page on the site. The shortcode works on the pages and posts, which means the widget on the website is working.
I've looked at a couple of links, including this link, which told me I had to simply insert this code into the function.php file and the shortcode would be read:
add_filter( 'widget_text', 'shortcode_unautop');
add_filter( 'widget_text', 'do_shortcode');
Instead of showing the viewer in the sidebar, the shortcode is showing on the screen as text like the picture below:
On this post: Inserting shortcode [stream /] into a Text widget, I saw he had a similar problem but instead tried to insert the <?php ?>
tag around the shortcode, looking like below, which didn't work either:
<?php echo do_shortcode('[issuu width=100 height=100 backgroundColor=%23222222 documentId=121205060625-55b37366f5bb447998a5683f7b7ec9af name=di12052012 username=thedailyillini tag=news unit=%]'); ?>
I don't want to resort to another plugin, such as this one to read in the PHP and want to add a simple PHP function to enable the shortcode to be read into the text widget with the code above. Is there another resort beside the add_filter code that could work? Or does this have to do with the version of WordPress being used?
[issuu]
is no shortcode; what plugin are you using?