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.

    Thread Starter adamsmark

    (@adamsmark)

    I’m guessing that I should modify the plugin code (which I can do).

    Thread Starter adamsmark

    (@adamsmark)

    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]

    Thread Starter adamsmark

    (@adamsmark)

    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 ‘[Plugin: Smart Archives Reloaded] Include, instead of exclude categories?’ is closed to new replies.