list posts organized by year? (feature request)
-
Wondering if there’s a way you’d be able to build in functionality for this (or if there already is, please let me know): I want to list all posts by an author, but divided by year. For instance, this is what I’ve come up with using your plugin so far:
<ul> <li> 2018 </li> <ul> <li> [display-posts order="ASC" posts_per_page="-1" author="dkm" date_query_after="2017-12-31" date_query_before="2019-01-01"] </li> </ul> <ul> <li> 2019 </li> <ul> <li> [display-posts order="ASC" posts_per_page="-1" author="dkm" date_query_after="2018-12-31" date_query_before="2020-01-01"] </li> </ul> </ul> </ul>
But this requires a great deal of fiddling around and isn’t dynamic (i.e. if I add a post in 2020 I have to go back here and add in another shortcode).
Would be amazing if there was a display parameter for organizing by date, perhaps with an option to either separate by year or by month? I realize that’s a decent amount of work on the backend, but the ability to display this way would be really helpful for large lists of posts.
For what I’m talking about, see here (a site I’m currently working on):
https://dev.universaltheosophy.com/writings-johnston/
Scroll down to see the articles list in the sidebar. That’s currently a non-dynamic list I’d have to add to manually when a new article is added, but that’s the general idea I’m trying to dynamically display with the shortcode.
Thanks for a great plugin. If there’s a better way to do what I’m trying to do, please let me know. And if this is a feature you’d be able to add, that’d be great!
- The topic ‘list posts organized by year? (feature request)’ is closed to new replies.