Forums

date based archive of a single category (4 posts)

  1. bwells
    Member
    Posted 2 years ago #

    I know that normally an archive is either broken up by date (January, February, March) OR by category (politics, cars, movies). Is there any way to have both?

    For example, the desired behavior is the main menu of the site displays "Politics | Cars | Movies", then within each of those, the user can click on "January | February | March" for just posts that came from that category AND that month.

    Thanks

  2. MichaelH
    Volunteer
    Posted 2 years ago #

  3. bwells
    Member
    Posted 2 years ago #

    Thanks Michael. It looks like the technique you mentioned will create one page with links to every post in the blog, sort of like a sitemap.

    What I'm trying to do is break up each category by month. So for example within the "Movies" category, the user can click on January, February, etc.

    Does anyone know if this is possible?

  4. MichaelH
    Volunteer
    Posted 2 years ago #

    The only thing I can think of is to look at the code (wp-includes/general-template.php) that is used for the wp_get_archives() type=monthly and either create your own or modify the core to handle categories.

Topic Closed

This topic has been closed to new replies.

About this Topic