Textpattern CMS support forum
Parameter "sortby" for txp:related_articles
A list of related articles is currently ordered by posting date (descending), as per line 371 of taghandlers.php.
It would be nice if txp:related_articles accepted a “sortby” parameter (as far as I can tell, it currently doesn’t) which allows to order, for instance, by article title, post date, or randomly.
I find the latter very useful in case there are way too many related articles to display all of them next to an article.
With a limit of, say, 10 related articles imposed, users always get the same 10 out of what may be many more related articles if related articles are sorted by a specific field.
Random ordering of the list allows to display different related articles each time an article from a specific category is viewed, and offers visitors access to much more information from a site.
As a feature, this is not crucial, but would be nice to have.
- Plugin Author
- From: Exmouth, England
- Registered: 2004-08-24
- Posts: 3,251
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Parameter "sortby" for txp:related_articles