WordPress #9: Show Top Posts

On WordPress, install plugin “WordPress Popular Posts”.

On the code,

<?php echo do_shortcode('[wpp range="monthly" stats_views=1 order_by="views" limit=5]'); ?>

Go visit a few posts to add view count.

If there’s no view, it will show “Sorry. No data so far”.

References:

  1. https://cabrerahector.com/wordpress/how-to-make-a-grid-of-popular-posts-with-thumbnails/

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *