-
AuthorPosts
-
infodsign Friend
infodsign
- Join date:
- May 2013
- Posts:
- 50
- Downloads:
- 24
- Uploads:
- 7
- Thanks:
- 14
- Thanked:
- 3 times in 1 posts
May 16, 2015 at 2:13 pm #206385Hi there!!
I need my latest news in Home 10 to display order only by created or published date, and still doing it by the more visited.
I’ve seen other Threads are solved but I can get to do it
Can you help me??
Thanks!!
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
May 17, 2015 at 1:40 am #570811Hello @infodsign
Can you PM me your working site admin details ,
so i can check it and help u fix this issue .Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
May 17, 2015 at 1:40 am #735873Hello @infodsign
Can you PM me your working site admin details ,
so i can check it and help u fix this issue .Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
May 18, 2015 at 2:42 am #570849Hi
Do the below workEdit file “/html/mod_articles_latest/focus.php” in template “ja_magz”.
Find this code :
//sort those latest article by hits
$compare = create_function('$a, $b', ' if ($a->hits == $b->hits) { return 0; } return ($a->hits < $b->hits) ? 1 : -1; ');
replace it with this ://sort those latest article by hits
$compare = create_function('$a, $b', ' if ($a->created == $b->created) { return 0; } return ($a->created < $b->created) ? 1 : -1; ');
Save and check .
Let me know if it helps .1 user says Thank You to Pankaj Sharma for this useful post
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
May 18, 2015 at 2:42 am #735911Hi
Do the below workEdit file “/html/mod_articles_latest/focus.php” in template “ja_magz”.
Find this code :
//sort those latest article by hits
$compare = create_function('$a, $b', ' if ($a->hits == $b->hits) { return 0; } return ($a->hits < $b->hits) ? 1 : -1; ');
replace it with this ://sort those latest article by hits
$compare = create_function('$a, $b', ' if ($a->created == $b->created) { return 0; } return ($a->created < $b->created) ? 1 : -1; ');
Save and check .
Let me know if it helps .1 user says Thank You to Pankaj Sharma for this useful post
-
AuthorPosts
This topic contains 6 replies, has 2 voices, and was last updated by Pankaj Sharma 9 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum