• Hi this is newbie question.

    I made a custom page for a particular category, called category-X.php. I include header-X.php, sidebar-X.php etc. for this particular category.

    On sidebar, the tag
    <?php wp_get_archives(‘type=monthly’); ?>
    lists monthly archives for all posts on my blog (Dec 05, Nov 05, etc). How do I display monthly archives for posts ONLY in category-X ?
    Is there something like
    <?php wp_get_archives(‘type=monthly&category=12’); ?>

    Thanks in advance

Viewing 6 replies - 1 through 6 (of 6 total)
  • There isn’t. See the parameters: Template_Tags/wp_get_archives

    Thread Starter kei3h

    (@kei3h)

    Is there any way to achieve this? I have a category for movies which I have customised, but the archives for specific (movie) category for differnet months are not obtainable. So archive for my whole blog gets displayed. I was looking to have something like-

    https://www.xyz.com/category/movies/2005/12

    please help if you can conjure up some code. I’m not much php literate.

    I too, would love something like this.

    I am in the same board kei3h… I need to be able to create archives based on date and organized by category.

    In my case, I have a careers section (job posts) and I have a press release section which has archives by date listed on it.

    When you view the archives, which should just display the archives of press releases and not job postings in the careers section as well…

    How can we do this? I can’t believe there isn’t something as simple as “&category=” – there should be.

    I need the same thing… and I can’t find anywhere any solution… This parameter seems so needed and obvious for wp-archives…

    I wouldn’t say it’s so needed and obvious. I’d guess 99% of WP users probably have no need for such a thing. The idea is keep the core code simple and use plugins & custom code to acheive the fringe stuff.

    This could likely be acheieved with some custom coding, or using archive pages. If PHP coding isn’t your thing, there are likely some people who would work it out for you, for a cost of course.

    What a usefull answer !

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘archive list for specific category’ is closed to new replies.