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:
- https://cabrerahector.com/wordpress/how-to-make-a-grid-of-popular-posts-with-thumbnails/
Leave a Reply