Skip to content

How to Add a Like Button to WordPress Posts (Free & Easy)

Administrator
4 min read
WordPress like button plugin

Adding a WordPress like button plugin to your posts is one of the simplest ways to boost visitor engagement on your site. Instead of requiring visitors to leave a comment — a high-friction action — a like button gives them a quick, low-effort way to show appreciation for your content. This guide walks you through exactly how to do it for free.

Why Add a WordPress Like Button to Your Posts?

Engagement signals matter. When visitors interact with your content — even just clicking a like button — it tells you which posts resonate most with your audience. Over time, like counts also build social proof on your posts, encouraging new visitors to read and engage with popular content.

Most like button solutions available today are either bloated with unnecessary features, require jQuery, or use cookie-based tracking that creates GDPR compliance headaches. A good WordPress like button plugin should be lightweight, dependency-free, and privacy-friendly out of the box.

Introducing Simple Post Like

Simple Post Like is a free, open-source WordPress like button plugin built for exactly this purpose. No jQuery. No external dependencies. Just a clean, fast like button that works on any WordPress theme without configuration overhead.

Key features:

  • 3 display styles — Default, Minimal, and Pill — to match any theme design
  • Guest support — visitors don’t need to be logged in to like a post
  • GDPR-friendly tracking — uses hashed IP addresses instead of cookies
  • Like count display — show total likes on each post
  • Developer-friendly — full hooks and filters for customization
  • REST API support — toggle likes and retrieve counts via API
  • Zero dependencies — no jQuery, no external libraries

Simple Post Like is released under GPL-2.0-or-later — free for any use including commercial themes.

How to Install Simple Post Like

Step 1 — Download the plugin

Download Simple Post Like directly from FrontTheme or clone it from GitHub.

Step 2 — Install in WordPress

Go to:

WP Admin → Plugins → Add New → Upload Plugin

Upload the zip file and click Activate.

Step 3 — Configure display style

Go to:

WP Admin → Settings → Simple Post Like

Choose your preferred display style — Default, Minimal, or Pill. Save settings.

Step 4 — Display the like button

Simple Post Like automatically adds the like button to your single post template. If you want to place it manually anywhere in your theme, use the template function:

<?php simple_post_like_button( get_the_ID() ); ?>

Or use the shortcode anywhere in your content:

[simple_post_like]

That’s it. Your WordPress like button plugin is live and ready for visitors.

Customizing Simple Post Like

Simple Post Like is built with developers in mind. Every meaningful part of the plugin is filterable. Change the like button label, unlike label, or count text using built-in filters:

// Change the like button text
add_filter( 'spl_like_text', function() {
    return 'Love this post';
});

// Change the unlike button text  
add_filter( 'spl_unlike_text', function() {
    return 'Remove like';
});

Hook into the like and unlike actions to trigger custom behavior — send notifications, update post meta, or integrate with other plugins:

// Trigger when a post is liked
add_action( 'spl_post_liked', function( $post_id, $user_identifier ) {
    // your custom code here
}, 10, 2 );

Which Posts Should Show a Like Button?

Simple Post Like works on any public post type — posts, pages, or custom post types. The most effective use cases are:

  • Blog posts and articles — let readers appreciate your content quickly
  • Portfolio items — let visitors vote for their favourite work
  • Documentation pages — let users mark helpful articles
  • Product pages — let customers express interest without purchasing

Simple Post Like is the simplest free WordPress like button plugin available — install it in under two minutes.

Get Simple Post Like

Simple Post Like is completely free. Download it from fronttheme.com/products/simple-post-like/ and browse all free WordPress plugins by FrontTheme for more open-source tools built with the same care and craftsmanship.

I'm Faruk Ahmed, a layout designer and developer specializing in WordPress themes, HTML templates, and print design. Based in Bangladesh, I work with clients worldwide through Freelancer.com and Envato Market. With over 6 years of experience in design and development, I've helped businesses and individuals create beautiful, functional digital experiences. From custom WordPress themes to corporate branding materials, every project receives the same attention to detail and commitment to quality.

Leave a Reply

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