WordPress.org

Ready to get started?Download WordPress

Forums

Categories for archive pages (2 posts)

  1. Yoav Farhi
    Member
    Posted 6 years ago #

    Hi
    There's a plugin called Archive For Categories that can create archive list for specific categories.

    I'm using it in sidebar.php

    if (is_category()) {
    	global $wp_query;
    	$cat_obj = $wp_query->get_queried_object();
    	$cat_id = $cat_obj->term_id;
    	wp_get_archives("cat=$cat_id&type=monthly&show_post_count=1");
    }

    I'm looking for the inverse: A plugin/ hack that will show me a category list and pages for the specified archive:
    something like

    if (is_archive()) {
    	***find_out_which_archive_i'm_showing_
    	wp_get_categories("month=$month_id&show_post_count=1");
    }

    Anybody knows anything similar?
    Thanks!

  2. Yoav Farhi
    Member
    Posted 6 years ago #

    Anybody?

    There must be a way to show categories limited to specific months...

Topic Closed

This topic has been closed to new replies.

About this Topic