WordPress.org

Support

Support » Plugins and Hacks » Simple Facebook Connect » [Plugin: Simple Facebook Connect] Like button make shortcodes run in the HEAD

[Plugin: Simple Facebook Connect] Like button make shortcodes run in the HEAD

  • 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

    //the_post();
    		//rewind_posts();

    Now all is good 🙂

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Simple Facebook Connect] Like button make shortcodes run in the HEAD’ is closed to new replies.
Skip to toolbar