'', // RSS feed URL 'items' => 5 // Number of items to display ), $atts, 'simple_rss' ); if (empty($atts['url'])) { return '
No RSS feed URL provided.
'; } $rss = fetch_feed($atts['url']); if (is_wp_error($rss)) { return 'Unable to fetch the RSS feed.
'; } $maxitems = $rss->get_item_quantity($atts['items']); $rss_items = $rss->get_items(0, $maxitems); if ($maxitems == 0) { return 'No items found in the RSS feed.
'; } $output = '' . esc_html($item->get_date('j F Y | g:i a')) . '
'; $output .= '