Display post archive as a month table, show last three months

admin2025-01-07  5

How can I add a post archive to a template file in my custom theme that displays posts in a monthly calendar view like shown in the twenty ten theme screen shot?

/

Do I use wp_get_archives with "daily" and the style it in to rows and columns? But i'd also like to show days without posts as non-linked days...

Many thanks

How can I add a post archive to a template file in my custom theme that displays posts in a monthly calendar view like shown in the twenty ten theme screen shot?

https://wordpress.org/themes/twentyten/

Do I use wp_get_archives with "daily" and the style it in to rows and columns? But i'd also like to show days without posts as non-linked days...

Many thanks

Share Improve this question asked Jan 4 at 3:17 TimTim 1 New contributor Tim is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
Add a comment  | 

1 Answer 1

Reset to default 1

The Twenty Ten screenshot calendar UI in the screenshot comes from WordPress core's Calendar Widget. Though the main crux of the widget display comes from the get_calendar() function, which is actually responsible for the output of the calendar itself.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1736253016a92.html

最新回复(0)