Welcome to WebmasterWorld Guest from 54.224.148.71

Forum Moderators: bill & werty

Message Too Old, No Replies

How can i do this

display only first 5 topics

     
12:33 pm on Apr 22, 2006 (gmt 0)

New User

10+ Year Member

joined:Mar 4, 2006
posts:13
votes: 0


i know how to display rss feeds in php files using rss feeds.
i want to display yahoo feeds in my site but want to show only five topics in my site do anyone know how to do this.
Example : if there are 20 topics in a feed i want to display only 5[first five or random] topics
1:19 am on May 4, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Nov 2, 2004
posts:71
votes: 0


It depends on how you're displaying the feeds. If you're using some sort of loop to display each item, go through the loop five times instead of until you run out of items.