Title: WPUser_NY's Replies | WordPress.org

---

# WPUser_NY

  [  ](https://wordpress.org/support/users/wpuser_ny/)

 *   [Profile](https://wordpress.org/support/users/wpuser_ny/)
 *   [Topics Started](https://wordpress.org/support/users/wpuser_ny/topics/)
 *   [Replies Created](https://wordpress.org/support/users/wpuser_ny/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/wpuser_ny/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/wpuser_ny/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/wpuser_ny/engagements/)
 *   [Favorites](https://wordpress.org/support/users/wpuser_ny/favorites/)

 Search replies:

## Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Need help to display RSS Modified Date instead of Published Date](https://wordpress.org/support/topic/rss-use-modified-date-instead-of-published-date/)
 *  Thread Starter [WPUser_NY](https://wordpress.org/support/users/wpuser_ny/)
 * (@wpuser_ny)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/rss-use-modified-date-instead-of-published-date/#post-7009695)
 * Thank you for the suggestion.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Need help to display RSS Modified Date instead of Published Date](https://wordpress.org/support/topic/rss-use-modified-date-instead-of-published-date/)
 *  Thread Starter [WPUser_NY](https://wordpress.org/support/users/wpuser_ny/)
 * (@wpuser_ny)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/rss-use-modified-date-instead-of-published-date/#post-7009667)
 * Thank you. I understood when you explained the cache part. However, we can rule
   out that this issue is related to cache because its the same even when i check
   from new browsers.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Need help to display RSS Modified Date instead of Published Date](https://wordpress.org/support/topic/rss-use-modified-date-instead-of-published-date/)
 *  Thread Starter [WPUser_NY](https://wordpress.org/support/users/wpuser_ny/)
 * (@wpuser_ny)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/rss-use-modified-date-instead-of-published-date/#post-7009661)
 * That’s what I am thinking too is that probably feed-rss2.php may not be the file
   that’s invoked when the RSS is picking the data.
 * But feed-rss2.php file is what is referenced in other posts too, though the posts
   were not specific to resolving this issue with updated date.
 * Are you suggesting that this section be updated in feed-rss2.php to replace rss2_item
   mentioned in do_action(‘rss2_item’) with rss_item?
    Please clarify.
 *     ```
       <item>
       		<title><?php the_title_rss() ?></title>
       		<link><?php the_permalink_rss() ?></link>
       		<comments><?php comments_link_feed(); ?></comments>
       		<pubDate><?php echo mysql2date('r', get_the_modified_date('Y-m-d H:i:s')); ?></pubDate>
       		<dc:creator><![CDATA[<?php the_author() ?>]]></dc:creator>
       		<?php the_category_rss('rss2') ?>
   
       		<guid isPermaLink="false"><?php the_guid(); ?></guid>
       <?php if (get_option('rss_use_excerpt')) : ?>
       		<description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
       <?php else : ?>
       		<description><![CDATA[<?php the_excerpt_rss(); ?>]]></description>
       	<?php $content = get_the_content_feed('rss2'); ?>
       	<?php if ( strlen( $content ) > 0 ) : ?>
       		<content:encoded><![CDATA[<?php echo $content; ?>]]></content:encoded>
       	<?php else : ?>
       		<content:encoded><![CDATA[<?php the_excerpt_rss(); ?>]]></content:encoded>
       	<?php endif; ?>
       <?php endif; ?>
       		<wfw:commentRss><?php echo esc_url( get_post_comments_feed_link(null, 'rss2') ); ?></wfw:commentRss>
       		<slash:comments><?php echo get_comments_number(); ?></slash:comments>
       <?php rss_enclosure(); ?>
       	<?php
       	/**
       	 * Fires at the end of each RSS2 feed item.
       	 *
       	 * @since 2.0.0
       	 */
       	do_action( 'rss2_item' );
       	?>
       	</item>
       ```
   
 * Can you please explain why you think that it might solve the issue?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Need help to display RSS Modified Date instead of Published Date](https://wordpress.org/support/topic/rss-use-modified-date-instead-of-published-date/)
 *  Thread Starter [WPUser_NY](https://wordpress.org/support/users/wpuser_ny/)
 * (@wpuser_ny)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/rss-use-modified-date-instead-of-published-date/#post-7009658)
 * I am using a default RSS widget in Wordpres, and supplying a source url.
 * When I check the source of RSS, it contains both a published date and updated
   date, but the RSS widget is picking the published date rather than the updated
   date.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Need help to display RSS Modified Date instead of Published Date](https://wordpress.org/support/topic/rss-use-modified-date-instead-of-published-date/)
 *  Thread Starter [WPUser_NY](https://wordpress.org/support/users/wpuser_ny/)
 * (@wpuser_ny)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/rss-use-modified-date-instead-of-published-date/#post-7009655)
 * Yeah, i am looking at the actual feed that’s pulled from source, so its not cached.
   It displays the published date, and not the updated date.
 * Would it be possible to use firebug or some such tool to look at the DOM structure
   that’s pulled when the feed is generated? or maybe trace which files are being
   invoked for populating the rss section?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Need help to display RSS Modified Date instead of Published Date](https://wordpress.org/support/topic/rss-use-modified-date-instead-of-published-date/)
 *  Thread Starter [WPUser_NY](https://wordpress.org/support/users/wpuser_ny/)
 * (@wpuser_ny)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/rss-use-modified-date-instead-of-published-date/#post-7009652)
 * In feed-rss2 file,
 *     ```
       <item>
        <title><?php the_title_rss() ?></title>
        <link><?php the_permalink_rss() ?></link>
        <comments><?php comments_link_feed(); ?></comments>
        <pubDate><?php echo mysql2date('r', get_the_modified_date('Y-m-d H:i:s')); ?></pubDate>
        <dc:creator><![CDATA[<?php the_author() ?>]]></dc:creator>
        <?php the_category_rss('rss2') ?>
       ```
   
 * I replaced get_post_date with get_the_modified_date, but still the feed is showing
   posted date.
 * Do I need to update any other instances of get_post_date in other files as well
   or if there’s a way around to display the updated date of the post?

Viewing 6 replies - 1 through 6 (of 6 total)