• hi there.
    I’m getting frustrated.. I tried so many things, but nothing seems to work the right way.
    what I’m looking for is something like this:
    i have posts of the news-category. now, I want all of them which are posted in current year (now 2010) appearing on the home/-frontpage. there’s also a menupoint “news”, which directs to the frontpage.

    additionally, I want submenu-items created dynamically of all past years where news-posts exists, to show all the news-posts of this specific year (submenu-item 2009 shows all news-posts from 2009).
    I tried it with categories for past years, but that’s not dynamic at all.

    I tried it with wp_get_archives, but there’s no filtering for categories.

    I know I could query_posts, this function accepts a category and a year parameter, but how could I implement this to have both the template and the menu dynamic?

Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘query_posts for year and category, how to keep it dynamic?’ is closed to new replies.