WordPress.org

Forums

Top 10 most viewed for a category (1 post)

  1. pfernandezm59
    Member
    Posted 5 years ago #

    I would like to display in may index page top 10 most viewed posts but only for my "featured" category (cat ID=1), ignoring the rest of posts from other categories. Is it possible to implement with this code?:

    <?php if (function_exists('get_most_viewed')): ?>

      <?php get_most_viewed('both', 10); ?>

    <?php endif; ?>

    Thank you very much in advance

Topic Closed

This topic has been closed to new replies.

About this Topic