Tag Info

New answers tagged

1

At the end of class-simplepie.php there is this line: usort($items, array(get_class($urls[0]), 'sort_items')); Which force-sorts feed elements, in case of multifeed. The $feed->enable_order_by_date(false); is indeed very important and the key to things, BUT it gets disregarded (what I was experiencing) if I use multifeed. Source: in get_items() of ...


1

I have no idea what's happening with this feed but with this code include_once( ABSPATH . WPINC . '/feed.php' ); $rss = fetch_feed( 'https://picasaweb.google.com/data/feed/base/user/110981376645512804522/albumid/5638371435917293985' ); foreach ($rss->get_items() as $item) { if ($enclosure = $item->get_enclosure()) { echo '<img ...


1

I think you simply have to replace: $feed->enable_order_by_date(false); with $rss->enable_order_by_date(false); to disable the descending date ordering. In the case of a feed error, the fetch_feed() function returns an instance of the \WP_Error class. Otherwise the output is an instance of the \SimplePie class and this class contains the ...


0

WordPress offers an RSS feed Widget - you can pass the Google Script URL to the widget and it should be able to display the feed in your blog.



Top 50 recent answers are included