Actually, I'm not a programmer. I'm good at finding the code solutions I need by Googling and searching help forums and then copying and pasting. So I need more help than a line of code because I don't know what to do with it.
How about if I tell you what I did in Wordpress, and you can tell me how I would do something similar in SimplePress -- not just the code but where to put it or what file to create and where.
To create my custom Wordpress feed showing only posts for the past 7 days, I created a new template called rss-last7days.php and put it in my theme folder. Then, right after :
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
I added:
<?php $mylimit=7 * 86400; //days * seconds per day
$post_age = date('U') - get_post_time('U');
if ($post_age < $mylimit) { ?>
This was code that I found in a Wordpress forum. I am good at copying and pasting and sort of understanding what it is that the php is doing. But I'm not a programmer.
So, to use the code that you have provided above, do I need to create a new template? If so, where do I put it? Do I need to edit sp-feed.php? If so, won't my changes get overwritten by updates? What other steps do I need to take?
Thanks,
Beth