WordPress.org

Ready to get started?Download WordPress

Forums

HungryFEED
[resolved] multiple categories, only displaying first one (3 posts)

  1. jharnwell
    Member
    Posted 2 years ago #

    I'm trying to parse a delicious feed. When I use hungryfeed it only shows the first CATEGORY and I want it to show all of them separated by either a space or a comma and space.

    This is the shortcode I am using.
    <table> [hungryfeed url="http://feeds.delicious.com/v2/rss/jharnwell/bundle:Stage%205%20%3E%20Number%20and%20Algebra%20%3E%20Linear%20Relationships" template="1" feed_fields=""] </table>

    This is the template:

    <tr><td width="100">
    <a href="{{permalink}}"><img src="http://www.bitpixels.com/getthumbnail?code=15096&url={{permalink}}" /></a></td>
    <td><a href="{{permalink}}">{{title}}</a> - {{description}}
    <br /><font color="#999999" size="-2">Tags: {{category}}</font></td></tr>

    This is the output from the delicious RSS feed for one item.

    <item>
          <title>Geogebra Applet: What is the gradient of this line?</title>
          <pubDate>Mon, 04 Jul 2011 05:10:26 +0000</pubDate>
          <guid isPermaLink="false">http://www.delicious.com/url/0b9724f174a7cb5d26d865fc9eb1934d#jharnwell</guid>
          <link>http://www.geogebra.org/en/upload/files/jharnwell/Gradient___IWB.html</link>
          <dc:creator><![CDATA[jharnwell]]></dc:creator>
          <comments>http://www.delicious.com/url/0b9724f174a7cb5d26d865fc9eb1934d</comments>
          <wfw:commentRss>http://feeds.delicious.com/v2/rss/url/0b9724f174a7cb5d26d865fc9eb1934d</wfw:commentRss>
          <source url="http://feeds.delicious.com/v2/rss/jharnwell">jharnwell's bookmarks</source>
          <description>Drag a point to change the gradient of the line. To move one unit to the right, how much do you go up or down?</description>
          <category domain="http://www.delicious.com/jharnwell/">NA5.1.6</category>
          <category domain="http://www.delicious.com/jharnwell/">Geogebra</category>
        </item>
  2. Jason
    Member
    Plugin Author

    Posted 2 years ago #

    Ah, I have been looking for an example feed with multiple categories, I wasn't sure how it is implemented. Let me check that out and see if I can figure out how to make it work with HungryFEED. The template system is somewhat simplistic so I don't know the best approach but maybe a comma-delimited list would work.

  3. Jason
    Member
    Plugin Author

    Posted 2 years ago #

    I just updated to version 1.4.6 and if an item is assigned to multiple categories then it will show them as a comma-delimited list.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags