I am while using following code to show some records of my WordPress blog like a enter the sidebar. The issue is, it isn't upgrading regardless of what I actually do. Still it only shows the very first "Hello World" publish, despite the fact that I have added others, also it does not even show the up-to-date title of this publish after I have transformed it. Thought this can be a caching problem, but when I really click in to the feed XML, the information is up-to-date- making no sense in my experience??

    // Blog Feed:
    $rss_url = get_option('home')."/feed/";

    <ul class="side-feed">

    <?php if(function_exists('fetch_feed')) {

        include_once(ABSPATH . WPINC . '/feed.php');               // include the required file

        $feed = fetch_feed($rss_url); // specify the source feed

        $limit = $feed->get_item_quantity(3); // specify number of items
        $items = $feed->get_items(0, $limit); // create an array of items
echo count($items);
    if ($limit == 0) echo '<div>(None)</div>';
    else foreach ($items as $item) : ?>

        <li><a href="<?php echo $item->get_permalink(); ?>"><?php echo $item->get_title(); ?></a></li>

    <?php endforeach; ?>


Wordpress caches feeds for 12 hrs automatically, to alter this you have to hook in to the wp_feed_cache_transient_lifetime filter and return the amount of seconds you need to cache for.

add_filter('wp_feed_cache_transient_lifetime', create_function('', 'return 60*60;'));