Title: Simplepie RSS
Last modified: August 20, 2016

---

# Simplepie RSS

 *  [bcollery](https://wordpress.org/support/users/bcollery/)
 * (@bcollery)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/simplepie-rss/)
 * I’m using SimplePie to display an RSS feed in WordPress. For some reason the 
   get_date() function is returning nothing? Here’s my code below. Could it be an
   issue with my feed?
    _ [ Mod note: it’s the backtick character for code not the
   single quote. Or use the code button, that works too. ]
 *     ```
       <h3><span class="dark-blue">news</span> & media</h3>
   
       <ul>
       <?php $feed = fetch_feed( 'http://dgpp.ie/dgppnews_rss.xml' );
       foreach ( $feed->get_items() as $item ) {
           printf( '
       <li><a href="%s"><strong>%s</strong></a>', $item->get_permalink(),
           $item->get_title() );
           printf( '<p>%s</p>', $item->get_description() );
           printf( '<p>%s</p>', $item->get_date() );
           printf( '<a href="%s">read more</a></li>
       ', $item->get_permalink() );
       }
       ?>
       </ul>
       ```
   

The topic ‘Simplepie RSS’ is closed to new replies.

## Tags

 * [RSS](https://wordpress.org/support/topic-tag/rss/)
 * [simplepie](https://wordpress.org/support/topic-tag/simplepie/)

 * 0 replies
 * 1 participant
 * Last reply from: [bcollery](https://wordpress.org/support/users/bcollery/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/simplepie-rss/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
