• I followed the guide and setup everything and it works!

    Like any good coder, there’s one tweak I want to make.

    Where my blog posts are displayed on my home page, it shows the title and date. However, the date appears as “Tue, 18 Jul 2006 04:38:07 +0000” I’d prefer it to appear as “Tue, Jul 18 2006” or “Tuesday, July 18 2006”. Is this something that would need to be done in the ColdFusion page, headlines.xsl file or in my WordPress blog?

    The headlines.xsl blog RSS code is:

    <xsl:for-each select=”rss/channel/item/title[position() <= $ItemsPerPage]”>
    <xsl:sort select=”dc:date” order=”descending” />
    <xsl:value-of select=”.”/>
    <xsl:value-of select=”../pubDate”/>
    </xsl:for-each>

    The page CF is:

    <cfinvoke
    component=”burnettcom.includes.MM_XSLTransform.MM_XSLTransform”
    method=”transform”
    returnvariable=”mm_xsl_output”>
    <!— XSL Transformation —>
    <cfinvokeargument name=”xml” value=”http://www.burnettcom.com/blog/?feed=rss2″&gt;
    <cfinvokeargument name=”xsl” value=”headlines.xsl”>
    <cfinvokeargument name=”ItemsPerPage” value=”10″>
    </cfinvoke>

    How can I get the date to appear as “Tue, Jul 18 2006” or “Tuesday, July 18 2006” instead of “Tue, 18 Jul 2006 04:38:07 +0000”?

    P.S. In my blog options I set Time Options to nothing – yet the time is still appearing. Why?

Viewing 1 replies (of 1 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    The time format in an RSS feed is fixed to a given standard, you cannot change it without invalidating your feed. Your blog options have no effect on the content of the feed’s datetime format.

    So since you can’t change the feed, you’ll have to do it in the CF or the XSL. Beyond that, I cannot help you, as I know neither of those.

Viewing 1 replies (of 1 total)
  • The topic ‘Home page RSS feed time stamp appearance’ is closed to new replies.