One of my journals - calscripts - is a story archive. When someone clicks on a tag, I would like the entries under that tag to be displayed from oldest to newest, because obviously, chapter 1 will be older than chapter 10! It needs to be at the top!

I looked through the community but all I could find were entries for the initial tag display, and nothing for modifying what comes after you click a tag, eg:

If I could get some direction as to where to look, even that would be helpful. I noticed that when you go to customize an expressive theme, you can set the day and archive pages to show the least recent first, but you can't do that with the tags.

Edit: To clarify, I need some sort of test to know whether a page being displayed is a tag-filtered page, so I can only reverse entries on those pages (since they could as "recent" pages).

Tags:

Comments

Well, it's possible, sort of. "Reversing order of entries" is such a frequently asked question in Support that it's covered in FAQ #248 and has its own tag in s2howto. It's easy enough to modify the RecentPage::print_body() function to reverse entry display on all RecentPages, which includes tag-filtered pages. Unfortunately it also affects the main journal page and the friends page. It will also affect only the posts displayed on the current page, not the actual navigation.

In other words, say you had a story with 10 chapters and only displayed 5 posts per page. In the "normal" order, chapters will display 10-6 on one page and 5-1 on the second. If you apply the "reversing entry order" code, they will display 6-10 on the first page and 1-5 on the second. Make sense?

EDIT: Slight correction: I figured out how to modify the code to reverse only entries on tag-filtered pages instead of all RecentPages, if you're interested.

Sorry to have kept you waiting so long; I've been out of commission for a few days. The highlighted part is the part I added/changed, thanks to something afuna developed in s2flexisquares. Let me know if you have any problems.