The plugin is quite simple to use. See below.
For now, Piggly Views is available in:
An easy way to get the most viewed posts is using the global function piggly_view_collection(). The default $days values is 30, default $limit value is 5 and default $types array is post.
// 10 most viewed posts in the last 180 days.
$most_viewed = piggly_view_collection( 10, 180 );if ( !empty( $most_viewed ) ) :
foreach ( $most_viewed as $post ) :
$postID = $post->post_id;
endforeach;
endif;
In the other side, you can use the shortcode [piggly_views_collection limit="10" days="180" types="post"] to return the default template.
When you use [piggly_views_collection] shortcode, it will return the following template for each post. Customize CSS as your needs by using .pgl-views-post as parent.
>
>
>
>
> {{category}}
> {{author}}
> {{date}}
>
>
From your WordPress administration panel go to Plugins > Installed Plugins and scroll down until you find Piggly Views. You will need to activate it first, then click on Settings to configure it.
Flush cache after X hours.
Keep options and/or table when uninstall the plugin.
Starting from $0 per month.
Rating
Reviewers
No reviews
Tags
Developed By
Piggly Dev
Quick & Easy
Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!
Testimonial plugins for Wordpress
Galleries plugins for Wordpress
SEO plugins for Wordpress
Contact Form plugins for Wordpress
Forms plugins for Wordpress
Social Feeds plugins for Wordpress
Social Sharing plugins for Wordpress
Events Calendar plugins for Wordpress
Sliders plugins for Wordpress
Analytics plugins for Wordpress
Reviews plugins for Wordpress
Comments plugins for Wordpress
Portfolio plugins for Wordpress
Maps plugins for Wordpress
Security plugins for Wordpress
Translation plugins for Wordpress
Ads plugins for Wordpress
Video Player plugins for Wordpress
Music Player plugins for Wordpress
Backup plugins for Wordpress
Privacy plugins for Wordpress
Optimize plugins for Wordpress
Chat plugins for Wordpress
Countdown plugins for Wordpress
Email Marketing plugins for Wordpress
Tabs plugins for Wordpress
Membership plugins for Wordpress
popup plugins for Wordpress
SiteMap plugins for Wordpress
Payment plugins for Wordpress
Coming Soon plugins for Wordpress
Ecommerce plugins for Wordpress
Customer Support plugins for Wordpress
Inventory plugins for Wordpress
Video Player plugins for Wordpress
Testimonials plugins for Wordpress
Tabs plugins for Wordpress
Social Sharing plugins for Wordpress
Social Feeds plugins for Wordpress
Slider plugins for Wordpress
Reviews plugins for Wordpress
Portfolio plugins for Wordpress
Membership plugins for Wordpress
Forms plugins for Wordpress
Events Calendar plugins for Wordpress
Contact plugins for Wordpress
Comments plugins for Wordpress
Analytics plugins for Wordpress
Common Ninja Apps
Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.
Show your team with interactive team member flip cards that build trust, support transparency, and help visitors connect with the people behind your brand.
Create a clear restaurant menu list that helps visitors explore dishes easily, understand key details, and make confident ordering decisions that support conversions.
Show Capterra reviews to build trust, strengthen credibility, and help visitors make confident software buying decisions that support higher sales.
Add interactive image hotspots to your site to turn static visuals into clickable guided experiences that improve engagement.
Showcase visuals with a multi row image slider that displays images in layered rows, improves design, and helps visitors explore content more easily.
Marketing button with text and an icon that highlights key offers, draws attention to promotions, and helps increase engagement and conversions.
Create interactive image polls that use compelling visuals to boost engagement, gather feedback, and help visitors vote easily.
Use a Lottie player to embed lightweight JSON animations that improve visual design, keep pages fast, and create a smoother user experience.

Showcase visuals with an image wall that creates a parallax style gallery, offers smooth scrolling, and presents images in customizable, engaging layouts.
Showcase content with a creative card carousel that rotates banner style items to highlight offers and important messages.
Show a GDPR-ready cookie notice that clearly explains how cookies are used, helping you stay compliant while creating a more transparent experience for your visitors.
Show trust badges that highlight security and reliability, build customer confidence, and help visitors feel safe making purchases on your site.
More plugins
The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!
