Likes Counter

Likes Counter

Wordpress plugin

Install on Wordpress

App Details

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:

  1. You can use Likes Counter multiple times in the same code.

  2. After the cache duration expires, it will make a new request and update the Likes value, again for the duration set.

  3. This plugin stores its values with Transients API, so it can be cachable outside database with memcached plugins. I recommend using W3 Total Cache.

  4. 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.

Usage

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"]' ); ?> 

Attributes

  • page (string): facebook page name (ex: wordpress) or id (ex: 6427302910)
  • duration (1 to 1440 – default: 30): duration in minutes to cache in database before making a new request.
  • offset (0 to number of current likes – default: 0): subtracts from Likes value and returns the rest. It can be used to reset likes count for a Likes goal objective in marketing campaigns.
  • separator (dot, comma, short, space or none – default: none): thousand separator type. Short separator, shortens thousand to K, million to M and billion to B.
  • tag (true or false – default: true): span tag around each character for css styling. <span class="likes-counter">number_character</span> for number characters and <span class="likes-counter-separator">separator_character</span> for separators characters.

Important

Could not get likes data. Please verify if page is correct.

If you get this there are two possible reasons:

  • Page / id misspelled or doesn’t exist (most likely),
  • Couldn’t connect to Facebook Graph API or Timeout. It may happen if you reach Facebook policy limits, consider increasing cache duration.

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

Pricing

Starting from $0 per month.

Check Out the Vimeo Feed Widget

By Common Ninja

Vimeo FeedTry For Free!

App Info

Rating

Reviewers

2 reviews

Tags

Counter
facebook
fb
like
likes

Developed By

Goncalo Neves

Quick & Easy

Find the Best Wordpress plugins for you

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

Testimonial plugins for Wordpress

Contact Form

Contact Form plugins for Wordpress

Maps

Maps plugins for Wordpress

Translation

Translation plugins for Wordpress

Chat

Chat plugins for Wordpress

Slider

Slider plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Contact

Contact plugins for Wordpress

Galleries

Galleries plugins for Wordpress

SEO

SEO plugins for Wordpress

Forms

Forms plugins for Wordpress

Comments

Comments plugins for Wordpress

Backup

Backup plugins for Wordpress

Privacy

Privacy plugins for Wordpress

Optimize

Optimize plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Comments

Comments plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Video Player

Video Player plugins for Wordpress

popup

popup plugins for Wordpress

SiteMap

SiteMap plugins for Wordpress

Payment

Payment plugins for Wordpress

Coming Soon

Coming Soon plugins for Wordpress

Inventory

Inventory plugins for Wordpress

Testimonials

Testimonials plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Membership

Membership plugins for Wordpress

Forms

Forms plugins for Wordpress

Analytics

Analytics plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Sliders

Sliders plugins for Wordpress

Analytics

Analytics plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Security

Security plugins for Wordpress

Ads

Ads plugins for Wordpress

Music Player

Music Player plugins for Wordpress

Countdown

Countdown plugins for Wordpress

Email Marketing

Email Marketing plugins for Wordpress

Membership

Membership plugins for Wordpress

Ecommerce

Ecommerce plugins for Wordpress

Customer Support

Customer Support plugins for Wordpress

Video Player

Video Player plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Common Ninja Apps

Some of the best Common Ninja plugins for Wordpress

Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.

Vimeo Feed for Wordpress logo

Vimeo Feed

Show Vimeo videos in a Vimeo feed that keeps content fresh and helps visitors discover more of your video library.

Scroll to Top for Wordpress logo

Scroll to Top

A scroll to top button that helps visitors move back to the top of long pages quickly, improving navigation and overall browsing flow.

Feedback Form for Wordpress logo

Feedback Form

Collect user insights with a feedback form that gathers valuable input, improves user experience, and helps you understand visitor needs more clearly.

Website Translator for Wordpress logo

Website Translator

Add a translation widget to your site so users can switch languages easily and access content in their preferred language.

Glassdoor Reviews for Wordpress logo

Glassdoor Reviews

Show Glassdoor reviews to highlight employee feedback, strengthen employer brand, and help candidates trust your company.

Feedback Popup for Wordpress logo

Feedback Popup

Collect user insights with a feedback popup that reveals issues early, improves user experience, and captures valuable leads through a clear feedback form.

G2 Reviews for Wordpress logo

G2 Reviews

Show G2 reviews to build trust, strengthen credibility, and help visitors make confident SaaS buying decisions that support higher sales.

Comments for Wordpress logo

Comments

Add a comments system with replies, voting, and moderation to boost engagement and build an active community on your site.

Cookie Banner for Wordpress logo

Cookie Banner

Use a Cookie Banner to inform visitors about cookies on your site and let them manage their consent in a clear, structured way.

Wake Up Notifications for Wordpress logo

Wake Up Notifications

Use wake up notifications to re engage visitors with custom alerts that capture attention, boost interaction, and help increase conversions across your site.

Engagement Toolbox for Wordpress logo

Engagement Toolbox

Use an engagement toolbox that combines forms, galleries, chats, and interactive elements to increase visitor activity and create a more engaging user experience.

AI Chatbot for Wordpress logo

AI Chatbot

Add an AI chatbot that answers user questions by crawling your site, using uploaded content, and collecting chat interactions.

More plugins

plugins You Might Like

Discover Apps By Platform

Discover the best apps for your website

WordPress
Wix
Shopify
Weebly
Webflow
Joomla
PrestaShop
Shift4Shop
WebsiteX5
MODX
Opencart
NopCommerce

Common Ninja Search Engine

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!

Multiple platforms