Home    Articles


How to add publish date in wordpress rss


The main reason for not showing the publish date is that you use the rss instead of rss2
ex: www.your-website.com/rss instead www.your-website.com/rss2


If this is not satifies you you can modify the code that generates the rss.
..but: Warning! never write code in the wordpress core files!

Find this line:

<description><?php bloginfo_rss('description') ?></description>

Then, add this line:

    echo mysql2date('D, d M Y H:i:s +0000', get_lastpostmodified('GMT'), false); 

…first time posted on w3bdeveloper.com