Return to Support

widget_text shortcodes stopped working

Home Forums Graphene WordPress theme Support widget_text shortcodes stopped working

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9057
    pakearns
    Member

    Recently there have been many updates to WP and plugins. In the last week or so, a shortcode that was functioning inside a text widget stopped. The shortcode listed birthdays from connections-pro.

    I had to add some code to the functions.php to get the functionality restored.

    add_filter( 'widget_text', 'do_shortcode' );

    While this worked, my question is did you change something that broke the functionality in the first place? Did WP change something that broke it? W3 Total Cache? I wonder why something that worked suddenly broke and if this code fix is the best repair.

    Thank you.

    #42681
    Quote:
    a shortcode that was functioning inside a text widget stopped

    How did this shortcode get added to your site? Via a plugin? Via a change to your child theme’s functions.php file.

    Quote:
    The shortcode listed birthdays from connections-pro.

    Is this a paid plugin? If so, we can’t really support it, since we don’t have access to it.

    Quote:
    I had to add some code to the functions.php to get the functionality restored.

    You mean child theme functions.php file, right? Don’t edit core files.

    Quote:
    While this worked, my question is did you change something that broke the functionality in the first place?

    Nope. Graphene hasn’t been updated in a while, so nothing’s changed with the theme.

    Quote:
    Did WP change something that broke it? W3 Total Cache?

    Both of these were recently updated, so it is likely that the problem lies there. But without knowing more about your situation, it’s difficult to say.

    Quote:
    I wonder why something that worked suddenly broke

    There are lots of potential reasons, and some of them may have nothing to do with WordPress, its themes, or its plugins. Take a look at this post:

    http://blog.kjodle.net/2013/07/04/troubleshoot-your-wordpress-blog/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.