WordPress.org

Ready to get started?Download WordPress

Forums

Calling for parts in an RSS feed (1 post)

  1. itissue
    Member
    Posted 6 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"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    >
    
    <channel>
    <title>My Site Title</title>
    <link>http://mysite.com</link>
    <description>Just another WordPress weblog</description>
    <pubDate>Mon, 14 Jan 2008 20:21:09 +0000</pubDate>
    <generator>http://wordpress.org/?v=2.2</generator>
    <language>en</language>
    <item>
    <title>A brief interlude</title>
    <link>http://mysite.com/2008/01/14/subject/</link>
    <comments>http://mysite.com/2008/01/14/subject/comments</comments>
    <pubDate>Mon, 14 Jan 2008 20:21:09 +0000</pubDate>
    <dc:creator>Author Name</dc:creator>
    
    <category><![CDATA[Site Update]]></category>
    
    <category><![CDATA[School]]></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>
    <wfw:commentRss>http://mysite.com/2008/01/14/subject/feed/</wfw:commentRss>
    </item>
    </channel>
    </rss>

    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

Tags

No tags yet.