WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Displaying Posts by year (5 posts)

  1. Cultivate
    Member
    Posted 6 years ago #

    I want to display a list of posts from a specific year.

    so for example all posts from 2006 would be displayed.

    how do i do this?

    thanks

  2. Cultivate
    Member
    Posted 6 years ago #

    is it even possible?

  3. MarkMichon
    Member
    Posted 6 years ago #

    What you want to do is something like this. replace 2004 with whatever year.

    <?php query_posts('year=2004') ; //gets post from year ?>

    then your loop

  4. Cultivate
    Member
    Posted 6 years ago #

    thanks ill give that a try.

  5. Cultivate
    Member
    Posted 6 years ago #

    that only bloody works.
    thanks very much.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags