Textpattern CMS support forum
- From: North Cornwall, UK
- Registered: 2005-11-19
- Posts: 1,956
article_custom for a the last n days/months/years
article_custom to spit out some articles in a tabular format. I’d like to restrict the output to articles in the past n days, weeks or months – the actual value of n isn’t important (or decided), but what I haven’t figured out is the method of the rolling date. I can use
month to hard-code a month in, and perhaps kludge the output a little by using
php to populate the current and previous month in
month, but is there a way I can make it happen more cleanly?
Thanks for any pointers.