Creating an archive page: how to modify template tags? (1 post)

  1. concretebadger
    Posted 8 years ago #

    I'm trying to set up an archive index for all categories, for posts that date back to the last year. This article seemed helpful enough, but I want to specify the year (e.g. 2006) and exclude all posts from previous year(s) from the sidebar menu.

    This is the archive page I came up with but I still can't find a template tag to specify the post dates. If there is no way of modifying a template tag to do this, is there a way of looking up the query that the tag calls up instead so I can code the SQL query in PHP? The thought of doing the query 'longhand' doesn't faze me too much since I'm used to writing in PHP anyway...

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.