Welcome to WebmasterWorld Guest from

Forum Moderators: bill & werty

Message Too Old, No Replies

Help with Magpierss RSS Feed

Help with Magpierss RSS Feed

9:54 am on Mar 16, 2007 (gmt 0)

New User

10+ Year Member

joined:Aug 18, 2006
votes: 0

I have the Magpierrs with smarty all set up. Works great but can't truncate the description or control the amount of listings I get.

Can anyone help? Thanks!

9:23 am on Apr 3, 2007 (gmt 0)

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
votes: 136

Welcome to WebmasterWorld Miva. Sorry that nobody has been able to help you out yet.

The Magpie FAQ has a section that seems to answer your question, at least in part:

  • Limit the number of headlines (aka items) returned. [magpierss.sourceforge.net]
  • 2:22 pm on Apr 13, 2007 (gmt 0)

    Junior Member

    10+ Year Member

    joined:Jan 26, 2005
    posts: 46
    votes: 0

    You can truncate the length of the description using PHP substr() function.

    For instance, if print($description) prints the description, then print(substr($description, 0, 30)) will print out just the first 30 characters.


    Join The Conversation

    Moderators and Top Contributors

    Hot Threads This Week

    Featured Threads

    Free SEO Tools

    Hire Expert Members