Topic: Showing most viewed articles
I am trying to include my most viewed articles, can not get it to work...
$sort = array('views', 'DESC');
include('../cms/show_news.php');
doesn't work for me
Dear CuteNews Users! Please feel free to contact us via our new Feedback Form and please send information about bugs to our bug tracker.
You are not logged in. Please login or register.
CutePHP Forums → Problem Solving / Help & Support → Showing most viewed articles
I am trying to include my most viewed articles, can not get it to work...
$sort = array('views', 'DESC');
include('../cms/show_news.php');
doesn't work for me
At the moment the functionality is not implemented. To sort articles you should take the following steps:
Sorting parameters should be set as
$sortby = 'title'; // title, tg, author supported yet
$dir = 'D'; // D - desc, A - asc
include 'content/show_news.php';
The functionality is prepared for the release and it will be rolled out with the next release. Also, the new sorting type will be introduced:vcnt
i.e. sorting by the number of views
When will this be available?
This functionality was implemented on April, 26 2018.
How do I sort by number of views, comments and more?
CutePHP Forums → Problem Solving / Help & Support → Showing most viewed articles
Powered by PunBB, supported by Informer Technologies, Inc.
The pun_antispam official extension is installed. Copyright © 2003–2009 PunBB.