最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

posts - Archiving by academic year instead of calendar year

matteradmin9PV0评论

I am building a website for a school where teachers can add posts for classwork. The posts are categorised by the class name (e.g Year 1, Year 2, etc). The academic year goes from September to July. I would like to archive previous year's posts.

Is it possible to archive (or group) posts from previous academic years and show them separately to the current year's?

I would like to do something like this:

/category/year-1       -> Shows Year 1 posts for current academic year.
/category/year-1/2017  -> Shows Year 1 posts for previous academic year (2017-18) .
/category/year-1/2016  -> Shows Year 1 posts for previous academic year (2016-17).

Is there a way that I can do this?

Post a comment

comment list (0)

  1. No comments so far