Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

<?php $args = array( 'cat' => '2', ); ?>

<?php wp_get_archives($args); ?>

I pull out the custom category with the above codes, it works fine & shows up "February 2013". here, My question is can I display it in "weekly".

I put (type = weekly) in $args . but it displays weekly posts archive, not the category.

my question is almost same with this question. How would you create a "weekly" archive? it seems the questioner didn't get a clear answer yet. I'm also looking for the answer..

if someone could help me. thanks in advance

share|improve this question
    
There isn't any cat parameter for wp_get_archives function. How r u using it? –  Vinod Dalvi Mar 5 '13 at 5:50
    
I'm using small plugin kwebble.com/blog/2007_08_15/archives_for_a_category . –  Ronald Mar 5 '13 at 6:03

1 Answer 1

up vote 0 down vote accepted

I read the readme.txt file of Archives for a category WordPress plugin.

The plugin author has stated following limitation on it.

Limitations

This plugin does not work for weekly archives. The list with archive links is correct, but the links themselves do not include the category. So when used, WordPress will not filter the resulting page on the category. The technical reason is that WordPress does not apply filters when the links for weekly archives are generated, so the plugin can't change them. Perhaps this is fixed in a next version of WordPress.

I checked latest version of wordpress(3.5.1) to find out whether this version has added any filter for weekly url but it has not added yet :(

I think you will have to develop custom code and sql query to implement this functionality and should not depend on Archives for a category WordPress plugin and wp_get_archives function to implement this functionality.

share|improve this answer
    
thank Vinod Dalvi, when I got a custom SQL solution I'll post the answer here. –  Ronald Mar 5 '13 at 7:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.