Is there a way to change the "exclude" category function to "include"?
I only want to show one or two categories.
http://wordpress.org/extend/plugins/smart-archives-reloaded/
Is there a way to change the "exclude" category function to "include"?
I only want to show one or two categories.
http://wordpress.org/extend/plugins/smart-archives-reloaded/
Sure:
smart_archives( '', array(
'category__in' => array( 1, 2 )
) );
See WP_Query for more possible arguments.
I'm guessing that I should modify the plugin code (which I can do).
There are a lot of files for this plugin. Which file do I modify?
You don't need to modify the plugin code.
Just paste the lines above in your theme, where you want the archives to appear.
You can even do it by including the shortcode in the content of a page:
[smart_archives include_cat=1,2,3]
That works great. Thanks.
Exactly what I needed also! I'm really new at modifying our WP site and I have a hard time deciphering the documentation. Good examples really help.
Thanks for asking the questions!
Thanks! Can this be done with authors in the shortcode as well?
This topic has been closed to new replies.