WordPress.org

Support

Support » Plugins and Hacks » Smart Archives Reloaded » [Resolved] [Plugin: Smart Archives Reloaded] posts per month not working with custom post types

[Resolved] [Plugin: Smart Archives Reloaded] posts per month not working with custom post types

  • Really love the plugin, hopefully i have an easy question, been trying to use the posts per page on a custom post type archive and no matter what i try i cant get it to work.
    Currently using <?php smart_archives(”, array(‘post_type’ => ‘features’, ‘posts_per_month’ => ‘3’)); ?> Its processing the post type features, but completely ignoring the posts per month and displaying all of em. thanks for your time

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

    @scribu

    ‘posts_per_month’ is an argument, not a query variable. The correct call would be:

    <?php smart_archives(
      array('posts_per_month' => 3),
      array('post_type' => 'features')
    ); ?>

    awesome, thanks for the reply. and again, love the plugin. thank you for your contributions

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Smart Archives Reloaded] posts per month not working with custom post types’ is closed to new replies.
Skip to toolbar