2012-07-07, 03:34:32
Hello all,
I am using the News Manager to display upcoming events. I modified the 'functions.php' file to only display posts with dates that hadn't already passed (strtotime($item->date) > $now) which is working okay. However, I want the posts to appear chronilogically, from earliest to latest date, but at the moment they are displayed latest > earliest. I can't find where to modify this in the files...could somebody help? Just to clarify, and example of what I mean:
What it is doing now:
POST TITLE
DATE: 18th Dec 2012
--------------------------
POST TITLE
DATE: 5th November 2012
How I would like it to be displayed:
POST TITLE
DATE: 5th November 2012
--------------------------
POST TITLE
DATE: 18th December 2012
...I'm sure this is probably something really simple I'm missing. Thanks to anyone that can help.
I am using the News Manager to display upcoming events. I modified the 'functions.php' file to only display posts with dates that hadn't already passed (strtotime($item->date) > $now) which is working okay. However, I want the posts to appear chronilogically, from earliest to latest date, but at the moment they are displayed latest > earliest. I can't find where to modify this in the files...could somebody help? Just to clarify, and example of what I mean:
What it is doing now:
POST TITLE
DATE: 18th Dec 2012
--------------------------
POST TITLE
DATE: 5th November 2012
How I would like it to be displayed:
POST TITLE
DATE: 5th November 2012
--------------------------
POST TITLE
DATE: 18th December 2012
...I'm sure this is probably something really simple I'm missing. Thanks to anyone that can help.