WordPress.org

Ready to get started?Download WordPress

Forums

drop down with only years with posts (4 posts)

  1. slee
    Member
    Posted 4 years ago #

    is it possible to use something like query_posts to create a drop down of years that there are posts for?

  2. MichaelH
    Member
    Posted 4 years ago #

    Might look at plugins for that...one example:
    http://wordpress.org/extend/plugins/awsom-drop-down-archive/

  3. slee
    Member
    Posted 4 years ago #

    thanks for the link but unfortunately it is not quite what i was after.
    i want to have a drop down of only years so 2006, 2008, 2009 etc for those years that have posts.

    i may also want to have a drop down of months for that year as well that have posts.

  4. MichaelH
    Member
    Posted 4 years ago #

    Might look at the wp_get_archives() examples.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.