Hallo,
erst mal vielen Dank für das tolle Plugin!
Seit ein paar Tagen funktioniert das Plugin leider nicht mehr,
anscheinend wird kein Content aus Facebook geladen.
Hat Facebook mal wieder etwas an der API umgestellt?
]]>Hallo,
i see following error message:
Warning: Invalid argument supplied for foreach() in /wp-content/plugins/hootproof-like-box/Htprfb_Widget.php on line 140
Do you have an idea?
Regards
Wolfram
Hey Michelle,
using your plugin with WP_DEBUG on true throws some general error messages due to the implemented call on the enqueued styles. You should wrap the following lines in a function and hook it into an action.
wp_register_style('htprfb_like_box_css', HTPRFB_PLUGIN_PATH . 'style.
wp_enqueue_style('
wp_register_style('htprfb_fontawesome', '//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.
wp_enqueue_style('htprfb_fontawesome');
For example hook it into ‘wp_enqueue_scripts’ as Codex suggests or how I prefer into ‘wp_head’:
add_action( 'wp_head', 'htprfb_load_styles' );
/**
* Action hook to load Plugin specific Stylesheets.
*
* @since 1.2.2
*
* @uses HTPRFB_PLUGIN_PATH
*
*/
function htprfb_load_styles(){
wp_register_style('htprfb_like_box_css', HTPRFB_PLUGIN_PATH . 'style.css');
wp_enqueue_style('htprfb_like_box_css');
wp_register_style('htprfb_fontawesome', '//cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css');
wp_enqueue_style('htprfb_fontawesome');
}
]]>