WordPress.org

Ready to get started?Download WordPress

Forums

display all posts after or before a date "x" (1 post)

  1. Meinbrodt
    Member
    Posted 6 years ago #

    Hello,

    The last two hours I tried unsuccessfully to modify the wordpress loop in order to display only posts that had been written before a certain year.

    What I basically tried was to alter my template like that:

    query_posts($query_string . "&year<2007")

    or

    query_posts($query_string . "&year=2005&year=2006")

    and

    query_posts($query_string . "&year<=2006")

    Unfortunately it seems that in this context neither boolean operators when combining twice the same filter criteria nor relational arguments are working.

    I'd be very glad for any help ...

    Greetings

    Matthias

Topic Closed

This topic has been closed to new replies.

About this Topic