Simple Facebook Connect
Like button make shortcodes run in the HEAD (2 posts)

  1. saharusa
    Posted 4 years ago #

    When activating the Like button support, shortcodes you may have within your content will run (echo) in the head via wp-head

    Open sfc-like.php and comment out lines 165-166


    Now all is good :)

  2. Samuel Wood (Otto)
    WordPress.org Tech Dude
    Plugin Author

    Posted 4 years ago #

    Ummm... No. If you do that, then the shortcodes won't be processed properly by the plugin.

    Shortcodes should never echo output, they're supposed to return it. The plugin processes shortcodes in the head so that it can get the results of them, to look for images and the like.

    You should fix your broken shortcode code to make it return the shortcodes instead of echoing anything.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic