WordPress.org

Forums

[resolved] Limit posts shown on Popularity Contest (3 posts)

  1. SarahEC
    Member
    Posted 8 years ago #

    I'm using Alex King's popularity contest in my sidebar and I'm wondering if there is any way to limit the number of posts shown? I've read through the forums and readme, but I couldn't seem to find anything on it. Thanks so much!

  2. Chris_K
    Member
    Posted 8 years ago #

    Visit Options -> Popularity.

    There's a section called, "Popularity Contest Template Tags" and there'll you find tags and parameters you could use in your sidebar.

    Looking at akpc_most_popular, for example, you'll see that the first argument dictates how many posts are shown.

  3. mars-hill
    Member
    Posted 7 years ago #

    So, for dummies like me it looks like this:
    <?php akpc_most_popular($limit = 5); ?>

    I've now got this running on the indietravelpodcast.com homepage.

Topic Closed

This topic has been closed to new replies.

About this Topic