WordPress.org

Support

Support » How-To and Troubleshooting » List Custom Post Type "Posts" by Year

List Custom Post Type "Posts" by Year

  • I’m building an “archive” page. In my “archive” page, I want to list posts by year. This is easy enough to do with regular “posts”, but I’m using a “custom post type”.

    For example, I want the year “2012” to be a heading, and have listed under that heading all of that year’s posts. The same goes for “2011”, “2010”, “2009”, etc.

    How can one list custom post type posts by year like this? And, automatically (without adding the year heading manually)?

    Thanks!

  • The topic ‘List Custom Post Type "Posts" by Year’ is closed to new replies.