Forums

Smart ideas needed: List all posts, categorised by month (3 posts)

  1. eoghanmccabe
    Member
    Posted 4 years ago #

    Hi guys,

    I'm making a custom archives / sitemap page that will list links to all posts (ever published), categorised (labelled and in separate ordered lists) by month.

    Here's a mockup of the page: http://www.choosecontrast.com/new-archive-page.jpg

    Anyone have any suggestions for the most straight-forward and simple implementation for this? I've made a new "Archives" template page and am going to put it in there.

    Thanks!

  2. moshu
    Member
    Posted 4 years ago #

    Just don 't use the word "categorised" - it is very misleading, since WP has a category for each post!
    According to your picture you just want your posts shown by months.
    A lots of archives plugins do that already.

  3. Spiewgels
    Member
    Posted 4 years ago #

    I don't really know how to archive it AND have the categories in the archives separate but maybe this will help you get started...it's from my page: `<h2>Archives by Month:</h2>

      <?php wp_get_archives('type=monthly'); ?>

    `

    Maybe once you've got that set up, you could add this function and maybe it will embed the category archives within that month: `<h2>Archives by Subject:</h2>

      <?php wp_list_cats(); ?>

    `

    Maybe playing with these two, you'll find a way to do what you're trying to do

Topic Closed

This topic has been closed to new replies.

About this Topic