I'm got an issue here that's stumping me. I'm trying to create a custom RSS feed using
add_feed(). The feed seems to have been created successfully, but I'm quite stuck on some bug in the feed template I'm writing.
For some reason, in my code,
the_post() seems to return nothing inside the loop. (I've verified this by using
print_r). I just don't have access to the typical post-related information that I'd expect.
get_defined_vars() outputs nothing inside the template as well. I wrote up a test script to hosted on another vhost on the same physical machine to verify that PHP is configured correctly, and it seems to be.
Stranger still: despite all of the above, my
<item>s aren't coming through blank. Some of the wordpress functions seem to work - just not all of them :/
As a reference, here's the entire template file I'm working on. It's very minimal, but based off of the
View it on pastebin. (Sorry, tried to put it here, but the formatter was getting pretty confused by it.)
Any help is tremendously appreciated. I'm stumped!