items as $item) { $titolo = $item['title']; $contenuto = $item['content']['encoded']; $autore = $item['author']; $data = $item['pubDate']; $href = $item['link']; echo "
"; if ($i == 5 ) break; $i = $i + 1; }} } // Create the function use in the action hook function example_add_dashboard_widgets() { wp_add_dashboard_widget('example_dashboard_widget', 'Daily WP Code Snippet by WpCode.net', 'wpcode_widget'); } // Hook into the 'wp_dashboard_setup' action to register our other functions add_action('wp_dashboard_setup', 'example_add_dashboard_widgets' ); ?>