WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Popular Posts
Limit number of posts per category (2 posts)

  1. Mina
    Member
    Posted 1 year ago #

    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/

  2. Brian Dainis (Curotec)
    Member
    Posted 9 months ago #

    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'); ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.