WordPress.org

Ready to get started?Download WordPress

Forums

Bootstrap Ultimate
[resolved] Shortcode in Widget enabled ? (6 posts)

  1. elody
    Member
    Posted 3 months ago #

    Hello,
    I want to enter some shortcode in a Text Widget but it doesn't work, the shortcode appears as normal text ... Though I found the line in functions.php that should enables the shortcode :

    // Enable shortcodes in widgets
    add_filter( 'widget_text', 'do_shortcode' );

    Is there anything you changed somewhere that I need to change ?
    Thank you in advance

  2. eminozlem
    Member
    Theme Author

    Posted 3 months ago #

    I've tried using adding a shortcode via text widget, no problems here.
    See: http://s27.postimg.org/uqal466o3/wdgsc.jpg
    Marking as resolved since I cant reproduce this. Let me know if you've further questions

  3. elody
    Member
    Posted 3 months ago #

    Hello eminozlem,

    I've tried to include the form shortcode from Contact form 7 as in your example, and it's working (I installed the plugin) :)
    But I still have normal text when I want to use this kind of shortcode :
    [display-posts category="carousel" posts_per_page="3"]
    Or :
    [map id='othermap' popup='false' html='My Location' height='400px' zoom='16' latitude='43.320392' longitude='-0.365741']

    Do you have the same problem or am I missing something ?
    Thx for your time

  4. eminozlem
    Member
    Theme Author

    Posted 3 months ago #

    Please change your theme and try again, if the widget works in another theme, but doesnt work in BSUL, report back and I'll check with said plugin(s) -also please provide links to those-.
    I can't possibly test it with all plugins (:

  5. elody
    Member
    Posted 3 months ago #

    I tried in the original Twenty Fourteen WordPress theme and it still doesn't work, but is it supposed to work so easy ?
    I didn't install any plugin, I thought the shortcode would work with this single line in a page or a widget :
    [display-posts category="carousel" posts_per_page="3"]
    But it displays as normal text, same for the [map id...] shortcode.
    Thx for any explanation :) (I also send you a direct link to my website by email)

  6. eminozlem
    Member
    Theme Author

    Posted 3 months ago #

    If it doesnt work with TwentyFourteen either, then it's not a theme issue.
    Btw, if you did not install a plugin how do you expect the shortcode to work , where did you get that shortcode from anyway ?

Reply

You must log in to post.

About this Theme

About this Topic