Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Automatically display older articles
Is there a way to automatically display a different article from the archives at the beginning of each day? In other words, I want to recycle some older articles. But I don’t want to have to go into the list every day and choose one to reset to today’s date.
The articles would ideally be displayed in the same order as they were orginally published, although random choices might work as well.
Thanks for any help.
Mark
Offline
Re: Automatically display older articles
Mmm. Never tried to do this, but what about:
<txp:article_custom form="your_form" sort="rand()" limit="1" />
Or container style:
<txp:article_custom sort="rand()" limit="1" >
<p><txp:permlink><txp:title /></txp:permlink></p>
...
</txp:article_custom>
Offline
Re: Automatically display older articles
That produces a random article for every visit or refresh. I was thinking of an “article of the day” from the archives. Every 24 hours, a different article would automatically display.
Mark
Offline
Pages: 1