
Likes Counter gets Facebook Likes of any page you want and stores the returning value temporarily in database so it doesn’t bubble requests to Facebook API.
Benefits:
You can use Likes Counter multiple times in the same code.
After the cache duration expires, it will make a new request and update the Likes value, again for the duration set.
This plugin stores its values with Transients API, so it can be cachable outside database with memcached plugins. I recommend using W3 Total Cache.
Easy to style span tags with css classes likes-counter and likes-counter-separator.
I made this plugin to be as light as possible, so I ended up making a shortcode that gives the user the functionality to build a powerful Facebook Likes Counter.
You can place it anywhere in your post/page with [likescounter page=’page_name_or_id‘] shortcode.
Example:
SHORTCODE IN POST/PAGE:
[likescounter page=’WordPress’ duration=’30’ offset=’10’ separator=’dot’ tag=’true’]
— Gets 842488 likes from WordPress Facebook page,
— Caches the value for 30 minutes,
— Offsets likes count by 10: 842478,
— Adds a thousand dot separator: 842.478,
— Adds a span tag around each character.
Returns : <span class="likes-counter">8</span> <span class="likes-counter">4</span> <span class="likes-counter">2</span> <span class="likes-counter-separator">.</span> <span class="likes-counter">4</span> <span class="likes-counter">7</span> <span class="likes-counter">8</span>
CSS:
Now lets add some CSS inside style.css of your active Theme:
span.likes-counter { background-color: #eeeeee; border-bottom: 1px solid #aaaaaa; border-left: 1px solid #cccccc; border-radius: 5px; border-right: 1px solid #dddddd; border-top: 1px solid #cccccc; color: #1e8cbe; margin: 2px; padding: 5px 10px; } span.likes-counter-separator { color: #dddddd; padding: 2px 4px; } PHP:
If you need to use inside a Theme Template file, use do_shortcode:
<?php echo do_shortcode( '[likescounter page="page_name_or_id"]' ); ?>
Could not get likes data. Please verify if page is correct.
If you get this there are two possible reasons:
Thank you for you interest in Likes Counter plugin.
If you need help please contact me via Support tab.
Feel free to contribute and fork, this plugin is at https://github.com/goncaloneves/likescounter
Starting from $0 per month.
Rating
Reviewers
2 reviews
Tags
Developed By
Goncalo Neves
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.
Add an event agenda to your site to display schedules clearly, helping users understand timing and plan their attendance.
Create an interactive glossary that displays clear definitions, images, and search options to help visitors learn terms quickly and navigate complex topics with ease.
Add a flexible size chart with visual guides and category tabs to help users choose accurate measurements while shopping.
Show inspiring quotes with a quotes carousel that rotates messages, enhances design, and keeps visitors engaged.
Add a translation widget to your site so users can switch languages easily and access content in their preferred language.
Add comparison tables to your site to help visitors evaluate features side by side, understand differences quickly, and choose the right option with confidence.
Create a clear restaurant menu list that helps visitors explore dishes easily, understand key details, and make confident ordering decisions that support conversions.
Create a course registration form that lets students sign up for your classes, saves every submission, and sends you a notification for each new enrollment.
Present images in a Slideshow carousel that rotates or slides through visuals, helping you highlight key content within a clean, engaging layout.
Show RSS content with an RSS feed carousel that updates automatically, displays posts in a smooth scrolling layout, and keeps visitors engaged.
Use a timeline widget to display events and milestones in chronological order with images and text so visitors understand your story clearly.

Add a Google powered search bar that delivers relevant results, improves navigation, and helps visitors find content fast.
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!
