how to create a calendar to show archived posts?

Posted 1 month ago by michalis

e.g on the sidebar there would be a list of years and months and when you click you see the posts only for that month

I guess the biggest issue would be how to create that calendar dynamically, to only show years and months that actually have posts

Im stumped as to how to go about it, is there a tutorial out there for something similar?

would I need to change the structure of my database? eg have a month column on my posts table?

I would appreciate any help

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.