Calling for parts in an RSS feed (1 post)

  1. itissue
    Posted 8 years ago #

    I was wondering how I would call for parts in an RSS feed so I can input those parts onto a page. Here's a sample feed:

    <?xml version="1.0" encoding="UTF-8"?>
    <!-- generator="wordpress/2.2" -->
    <rss version="2.0"
    <title>My Site Title</title>
    <description>Just another WordPress weblog</description>
    <pubDate>Mon, 14 Jan 2008 20:21:09 +0000</pubDate>
    <title>A brief interlude</title>
    <pubDate>Mon, 14 Jan 2008 20:21:09 +0000</pubDate>
    <dc:creator>Author Name</dc:creator>
    <category><![CDATA[Site Update]]></category>
    <guid isPermaLink="false">http://mysite.com/</guid>
    <description><![CDATA[Here's a short description of my post[...]]]></description>
     <content:encoded><![CDATA[<p>Here's my full post with everything I've written in the post.]]></content:encoded>

    What I want to know is how I would call something like content:encoded, or dc:creator, and also how to call all the categories and separate each of them with a comma. I know how to call one of the categories with $category. I tried calling the content with $content, but all it did was return the word array since content is an array. If anyone could help me that would be awesome.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.