WPUser_NY
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Need help to display RSS Modified Date instead of Published DateThank you for the suggestion.
Forum: Fixing WordPress
In reply to: Need help to display RSS Modified Date instead of Published DateThank 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
In reply to: Need help to display RSS Modified Date instead of Published DateThat’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
In reply to: Need help to display RSS Modified Date instead of Published DateI 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
In reply to: Need help to display RSS Modified Date instead of Published DateYeah, 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
In reply to: Need help to display RSS Modified Date instead of Published DateIn 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?