I want to paginate(paging) an rss feed in a wordpress Page. Is this possible?

Discussion in 'PHP' started by webtarded, Mar 4, 2008.

  1. #1
    I'm using simple pie to post a long rss feed within a wordpress Page, not a post. Too long in fact. I want to paginate the feed, for example, show the first 25 with a link to the next 25 and previous 25. I've found this example: http://simplepie.org/wiki/tutorial/how_to_do_item_paging but it doesn't work in wordpress. It works as far as limiting the feed to whatever number you specify and setting the links at the bottom of the feed, but the problem is that the links don't work to page forward or backward. I'm assuming this is because they don't exist, and can't or aren't generated dynamically. Is there a function in wordpress to generate pages on the fly? Not sure if i'm asking this correctly since i'm not a coder, but i'm definitely not afraid of poking around in it. I've searched the codex and it doesn't look too promising on that front. I've also found something here, www.dynamicdrive.com , but i'm not too sure i like the javascript part. Maybe that's the only way to do it though.

    Any suggestions on how i could do this, or where to look??
     
    webtarded, Mar 4, 2008 IP
  2. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #2
    The technical term is "pagination", there are tons on Google. This specific link might also help.

    Peace,
     
    Barti1987, Mar 4, 2008 IP
  3. webtarded

    webtarded Peon

    Messages:
    211
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for the advice. I've been reading up on it for a few days and i hadn't seen some of those. I think this problem may need to wait until i learn more about rss and php, i can't seem to make it work and wordpress doesn't seem to have that much functionality when it comes to static Pages.
     
    webtarded, Mar 5, 2008 IP
  4. shallowink

    shallowink Well-Known Member

    Messages:
    1,218
    Likes Received:
    64
    Best Answers:
    2
    Trophy Points:
    150
    #4
    You would have to custom code something for this. <!--nextpage--> in WP wouldn't work cause it doesn't know to pass in a paging value. If you used a wrapper script, it could detect if the page calling was page one or page two and adjust the request. Would require setting a default # to stop for page one too. I'm sure there would be more gotchas but it could work.
     
    shallowink, Mar 5, 2008 IP
  5. webtarded

    webtarded Peon

    Messages:
    211
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I've tried using <!--nextpage--> and a few other things, but i'm just not knowlegeable enough to code something like what i want.

    On the plus side, i setup a simple website and used a php pagination script with an rss feed and it worked beautifully. I guess it's my fault for wanting to use wordpress more like a cms than a blog, but i was sold by its ease of use. I am a complete noob when it comes to the web. Anyway, thanks for the tip. I'll put this on the backburner for now and have a go at it some other time.
     
    webtarded, Mar 5, 2008 IP