WordPress.org

Support

Support » Plugins and Hacks » Smart Archives Reloaded » [Resolved] [Plugin: Smart Archives Reloaded] Include, instead of exclude categories?

[Resolved] [Plugin: Smart Archives Reloaded] Include, instead of exclude categories?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author scribu

    @scribu

    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?

    Plugin Author scribu

    @scribu

    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?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] [Plugin: Smart Archives Reloaded] Include, instead of exclude categories?’ is closed to new replies.
Skip to toolbar