Forums

date based archive of a single category (4 posts)

  1. bwells
    Member
    Posted 5 months 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
    moderator
    Posted 5 months ago #

  3. bwells
    Member
    Posted 5 months 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
    moderator
    Posted 4 months 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.

Reply

You must log in to post.

About this Topic