Support » Plugin: WordPress Popular Posts » Limit number of posts per category

  • Hi,

    I hope someone can help me with this. I’m trying to pull popular posts from different categories and limit the number of posts to 3. I found that the ‘limit’ parameter does not do it. Is there something else I can use instead?

    Here’s my current code:
    <?php wpp_get_mostpopular('limit=4&range=weekly&order_by=views&pages=0&stats_comments=0&post_type=post&cat=37,-38'); ?>

    I hope this makes sense.

    Thanks allot for whoever is willing to help.

    Mina

    http://wordpress.org/extend/plugins/wordpress-popular-posts/

Viewing 1 replies (of 1 total)
  • I don’t know if your still having this issue, but I got it working for me by doing this:

    <?php if (function_exists('wpp_get_mostpopular')) wpp_get_mostpopular('posts_per_page=4'); ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Limit number of posts per category’ is closed to new replies.