[resolved] Wp-Pro-Quiz in Sidebar Widget (9 posts)

  1. askdesign
    Posted 2 years ago #

    I really like this plug-in. Very clean and easy to use. It works fine on a regular page. But I can't get it to work in a sidebar widget. Any idea what might be causing the problem?
    Thank you.


  2. xeno010
    Plugin Author

    Posted 2 years ago #

    Hello askdesign,

    Do you use "text" widget?

    Sincerely yours

  3. askdesign
    Posted 2 years ago #

    Yes, I used the text widget. When that didn't work, I tried other widgets. No widget worked.

  4. xeno010
    Plugin Author

    Posted 2 years ago #

    This is normal, WordPress unsupported shortcodes in widgets.


    1. Create a new File (activate-shortcodes-in-widgets.php)
    2. Write to the file:

    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
    5. finished

    but it can cause defects in design.

    Sincerely yours

  5. askdesign
    Posted 2 years ago #

    Hi Julius,
    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.

  6. xeno010
    Plugin Author

    Posted 2 years ago #

    As I said, wordpress unsupported shortcodes.

    If there are errors, delete the file.

  7. askdesign
    Posted 2 years ago #

    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.

  8. xeno010
    Plugin Author

    Posted 2 years ago #

    ah ok, thanks for the link.

  9. androidorgin
    Posted 2 years ago #

    Hi xeno010,
    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Wp-Pro-Quiz
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic