• Resolved trobaz

    (@trobaz)


    I am using the shortcode below in the Text widget but it simply displays the same shortcode string. Obviously I am using my location name. How do I get this to work? Thank you.

    [mbhi_hours location=”yourlocationname” output=”table”]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Maarten

    (@maartenbelmans)

    Hi @trobaz

    The text widget doesn’t allow shortcodes. Our plugin includes a few widgets that you can use directly though.

    Thread Starter trobaz

    (@trobaz)

    Yes, I noticed those widgets. So I guess the next question would be how can I get that specific shortcode to work in the widget area? Thank you.

    Plugin Author Maarten

    (@maartenbelmans)

    If you really want to add custom shortcodes, there are ways to make sure you can add shortcodes to text widgets too. If you Google you’ll stumble upon some easy ways to do it.

    Thread Starter trobaz

    (@trobaz)

    As a workaround, I added this code to the child theme’s functions.php

    add_filter( ‘widget_text’, ‘do_shortcode’ );

    then I used the Custom HTML Widget. It worked except it displays inline output only, regardless of what’s in the Settings. Thank you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Shortcode’ is closed to new replies.