Changing display order in all pages
Posted: Fri Dec 30, 2005 7:22 pm
My original question was how to change the display order on the initial page of the blog so that the oldest appears first and they gave me the following answer which worked great, however when I go to the callendar and change months the entries on the resulting pages are still in the old order of last date posted.
Can anyone tell me where I need to edit to change this display.
Here's the code they gave me earlier. and thanks.
Yes, you can edit your include/genpage.inc.php file.
Replace:
Code:
// Welcome screen or whatever
default:
serendipity_printEntries(serendipity_fetchEntries(null, true, $serendipity['fetchLimit']));
break;
with
Code:
// Welcome screen or whatever
default:
serendipity_printEntries(serendipity_fetchEntries(null, true, $serendipity['fetchLimit'], false, false, 'timestamp ASC'));
break;
You could also outsource the include/genpage.inc.php as your template's config.inc.php or layout.php file. But since this is advanced stuff and harder to achieve, you'll maybe not want to do this.
Thanks,
Tim