WordPress.org

Ready to get started?Download WordPress

Forums

List Custom Post Type "Posts" by Year (1 post)

  1. Adam
    Member
    Posted 2 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic