• I am having a serious problem with the RSS feeds from WordPress. The wp-rss2.php feed does not publish “pubDate” element and all my feed entries are sorted only by RcvDate in the aggregators. Worse, blog portals that collect RSSfeeds and use PubDate can’t show proper date and time and show 00:00 instead. I am asking for a suggestion how to add a PubDate element to RSS, I think it should be simple for people who know PHP and the WordPress PHP calls but I am not one of them. Thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter raynerape

    (@raynerape)

    I think I localized the problem and I really need help this time. It seems there sis pubdate element but it is getting the data from the database but because I am using translation, it gets translated words for months and weekdays. Because of them the clients seem not able to properly display the pubdate element. Is there any way to get thepublished date from the database but without the translated words, using the generic terms?

    I have no idea how to help, but I think I’m having the same problem–a site that aggregates my feed shows my posts as being published at different times than the time they were published.

    Same problem here. All Entries since May, 1th 2005 are showed up as January, 1th. 1970 in FeedReaders (like Thunderbird). And the RSS-Feed won’t validate anymore.

    We are discussing this issue in the german forum as well.

    Thread Starter raynerape

    (@raynerape)

    Okay, problem solved.
    It seems there’s a “bug” in the wp-rss2 where it uses a phpdate() string that includes translated strings of months and weekdays. I have fixed it by changing the entry pubdate to

    echo mysql2date(‘r’, get_the_time(‘Y-m-d H:i:s’));

    “r” means RFC date which is taken from PHP format and does not use translated strings. It is interesting that this “bug” is only in the wp-rss2.php file but not wp-rss2comments.php file ??

    Hmmm…I tried this fix, but my posts still show up with a timestamp five hours before I posted them…anyone have ideas about how to fix that?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘I need to hack the RSS files and add a pubdate – how?’ is closed to new replies.