WordPress.org

Ready to get started?Download WordPress

Forums

dbview
[resolved] Shortcode in widget? (4 posts)

  1. SEOguruNL
    Member
    Posted 1 year ago #

    Thank you for your great plugin!

    The shortcode works excellent when I add it to a post or page. I would also like to add it to the sidebar using a widget. When I add the shortcode to a text widget, the shortcode is not executed (I just see the shortcode itself).
    Is there any way dbview performing queries for the sidebar, using a widget?

    Thanks!

    http://wordpress.org/extend/plugins/dbview/

  2. SEOguruNL
    Member
    Posted 1 year ago #

    I discovered that only adding the following line to the functions.php is doing the job
    add_filter('widget_text', 'do_shortcode');

  3. john ackers
    Member
    Plugin Author

    Posted 1 year ago #

    That sounds like something I should add to the next version. Thanks for letting me know. I wasn't aware of that.

  4. SEOguruNL
    Member
    Posted 1 year ago #

    Ok, thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.