• Hello

    I’ve added the following to my functions.php

    add_filter('widget_text', 'do_shortcode');

    but it isn’t working, the short code is just showing as it is and when I add [display-posts etc] to text box it doesn’t work, it just outputs the short code as text.

    Any ideas what might be preventing it from working?
    I am using a child theme based on Spacious wordpress theme
    Thanks in advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • remove unwanted plugins it will work if same problem happens reply back

    Moderator bcworkz

    (@bcworkz)

    It could be plugin interference as Anto suggests, which can be also due to wanted plugins as much as unwanted. As a test, deactivate all, then activate one at a time until the problem recurs. The last activated is at fault. If the same problem happens with all plugins deactivated, it’s either your theme or the widget does not apply the “widget_text” filter. Also try switching to twentyseventeen theme with all plugins deactivated. If your filter is still not applied, the widget is not applying the filter at all.

    What widget are your trying use? Obviously if it is a plugin or theme widget, that module needs to remain active for testing.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Short codes not working’ is closed to new replies.