• I am trying to learn a little bit about how WP spits out RSS but I can find no RSS templates anywhere. The files wp-rss2.php and wp-rss.php just seem to have some kind of redirect in them.

    Where are the actual templates? Why dont’ they appear in my theme editor?

Viewing 4 replies - 16 through 19 (of 19 total)
  • https://www.wprecipes.com/creating-user-defined-rss-feeds-in-wordpress

    I haven’t glanced over your other links…. hope I’m not rehashing anything

    Thread Starter nickaster

    (@nickaster)

    Excellent, thank you. Yeah, that appears to be essentially the same thing I did. There are only a couple things it’s missing:

    1) No Author Field
    2) I need the posts to be full text, not just excerpt and therefore to include line breaks and paragraph formatting and all that.

    I’m mystified as to why this isn’t some simple one-liner of code (well, two liners).

    Any thoughts?

    <dc:creator><?php the_author() ?></dc:creator>

    really oughta work to get you the author stuff…. your rss format is rss 2.0 correct?

    did you set that between the <item></item> tags?

    and I’m tryin to figure out the description….to get full text…
    there is no codex for the_content_feed

    something like
    <description><![CDATA[<?php the_content_feed() ?>]]></description>

    or

    <description><![CDATA[<?php the_content_feed(‘rss2’) ?>]]></description>

    Thread Starter nickaster

    (@nickaster)

    Thanks!

    Okay… so… I was thinking maybe it was some kind of format, 2.0 thing, but not so sure.

    If I copy the code verbatim from that Yoast site, it does work exactly as predicted.

    If I slap in <dc:creator><?php the_author() ?></dc:creator> between the <item> part then it nukes the whole feed. It’s obviously the “dc” thing because if I put in <dc:creator>FOO</dc:creator> It still nukes it. If I put in <author>FOO</author> then it does in fact print out “FOO” correctly in the resulting RSS…

    CDTA thing isn’t working either, but we’ll get to that one…

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Where is my RSS template???’ is closed to new replies.