Do you use “text” widget?
Yes, I used the text widget. When that didn’t work, I tried other widgets. No widget worked.
This is normal, WordPress unsupported shortcodes in widgets.
1. Create a new File (activate-shortcodes-in-widgets.php)
2. Write to the file:
<?php /* Plugin Name: Activate-Shortcodes-In-Widgets Description: activate shortcodes in widgets Version: 1 Author: askdesign */ add_filter('widget_text', 'do_shortcode'); ?>
3. Upload the activate-shortcodes-in-widgets.php file to the /wp-content/plugins/ directory
4. Activate the plugin through the ‘Plugins’ menu in WordPress
but it can cause defects in design.
Thank you for the code. I created the new file as you described and installed it. I got this error message when I activated the plug-in:
The plugin generated 1 characters of unexpected output during activation. If you notice “headers already sent” messages, problems with syndication feeds or other issues, try deactivating or removing this plugin.
Should I be concerned about this error message?
The Quiz plug-in does work in sidebars now, with 3 issues I can see so far:
(1) when I edit the CSS file and click the “update” button, I get a blank screen. If I update the CSS file locally and then upload to the server, all is fine.
(2) I cannot update a post.
(3) I cannot create a new post.
These problems really affect the key functions that we need.
As I said, wordpress unsupported shortcodes.
If there are errors, delete the file.
Since I’m using Genesis (Optimal child theme), I researched a bit more and found a plug-in that does work, without causing any other problems: genesis-shortcodes.
Details are at this URL: http://wordpress.org/extend/plugins/genesis-shortcodes/
Their description (bold text is mine):
This file creates all the shortcodes used throughout a site. While there is an array of shortcodes that are packaged with Genesis, this plugin provides a few more shortcodes that are used for the purpose of developing sites and migrating sites. It also enables code to execute shortcodes in the text widget. Contains the following shortcodes: [post_field], [child_url], [wpurl], [url], [site_url], [uploads], [genesis_comments] & content columns shortcodes.
Thanks very much for your help.
Such a great plugin. I liked it and it works very nicely on my 2 blog sites.
Now for my upcoming blog, I need to give access of this plugin for the users who are in “Author” role, currently as an Administrator I can access it properly.
Can you please let me know if any possibility to activate this plugin for “Author” roles?
Thanks in advance.
- The topic ‘Wp-Pro-Quiz in Sidebar Widget’ is closed to new replies.