Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to fetch rss feed month wise from other website
    primarykey
    data
    text
    <p>I have a question regarding RSS feeds. I am using wordpress ver 3.2.1 and using other website rss feeds in my website. My requirement is to fetch the feeds month wise and to show in my website side bar.</p> <p>Currently i am using rss widget and showing the feeds in sidebar but they are coming in below format:</p> <ol> <li>Thu 9-29 4:30pm Elementary Quest - Parent Information Night</li> <li>Thu 10-6 -All Day- Half-Day: Elementary Conferences</li> </ol> <p>I will be very thankful for your help. Thanks in advance.</p> <p><strong>Update:</strong> Mar 13 2012</p> <p>This code is present in index.php</p> <pre><code>&lt;h2&gt;&lt;?php _e('Recent news from Some-Other Blog:'); ?&gt;&lt;/h2&gt; &lt;?php // Get RSS Feed(s) include_once(ABSPATH . WPINC . '/feed.php'); // Get a SimplePie feed object from the specified feed source. //$rss = fetch_feed('http://example.com/rss/feed/goes/here'); $rss = fetch_feed('http://lakewashington.intand.com/index.php?type=export&amp;action=rss&amp;schools=48&amp;groups=884,876,874,996'); print_r($rss); if (!is_wp_error( $rss ) ) : // Checks that the object is created correctly // Figure out how many total items there are, but limit it to 5. $maxitems = $rss-&gt;get_item_quantity(5); // Build an array of all the items, starting with element 0 (first element). $rss_items = $rss-&gt;get_items(0, $maxitems); endif; ?&gt; &lt;ul&gt; &lt;?php if ($maxitems == 0) echo '&lt;li&gt;No items.&lt;/li&gt;'; else // Loop through each feed item and display each item as a hyperlink. foreach ( $rss_items as $item ) : ?&gt; &lt;li&gt; &lt;a href='&lt;?php echo esc_url( $item-&gt;get_permalink() ); ?&gt;' title='&lt;?php echo 'Posted '.$item-&gt;get_date('j F Y | g:i a'); ?&gt;'&gt; &lt;?php echo esc_html( $item-&gt;get_title() ); ?&gt;&lt;/a&gt; &lt;/li&gt; &lt;?php endforeach; ?&gt; &lt;/ul&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload