Skip to content

How to Add a Like Button to WordPress (Posts, Comments and WooCommerce)

7 min read

Add a like button to WordPress: a post card with a like button and reaction counts

A like button gives every reader a one-click way to say “this was good”, even the ones who never leave a comment. In this guide you’ll add one to your WordPress posts, comments and WooCommerce products with the free WP ULike plugin. It takes about two minutes and no code.

Short answer: install WP ULike, go to WP ULike → Settings → Content Types → Posts, turn on Automatic Display and save. Every single post now has a like button.

A WordPress post with a heart like button showing 87 likes, and like buttons under each comment
What readers see: a like button under the post and under each comment.

Step 1: Install WP ULike

  1. In your dashboard, go to Plugins → Add New Plugin.
  2. Search for WP ULike.
  3. Click Install Now, then Activate.

The free version has no vote limits and no sign-up. You’ll find a new WP ULike menu in your dashboard.

Step 2: Turn on the like button

  1. Go to WP ULike → Settings → Content Types → Posts.
  2. Turn on Automatic Display.
  3. Choose a Button Position. “Bottom of Content” suits most themes.
  4. Under Post Types, keep Posts. Add Pages or Products if you want buttons there too.
  5. Save, open any post on your site and click the button.
WP ULike Content Types settings for Posts with Automatic Display turned on
Settings → Content Types → Posts. Post Types decides which kinds of content get a button.

By default the button only shows on single posts, not on your home page or archives. You can change that under Show Buttons On.

Step 3: Pick a style

Go to WP ULike → Customize to choose one of the four free button styles and change colors, icons and spacing with a live preview. If you want more, browse all templates; WP ULike Pro adds 20 more styles, including emoji reactions and star ratings.

Step 4: See which posts readers like

Open WP ULike → Statistics. Your test like should already be there. As votes come in, you’ll see totals, your most liked content and the times your readers are most active, all inside WordPress. Read more in our statistics dashboard guide.

Add a like button to comments

Go to Settings → Content Types → Comments and turn on Automatic Display. Each comment gets its own button, so the most helpful replies stand out. The same tabs appear for bbPress forums and BuddyPress activity when those plugins are active.

Add a like button to WooCommerce products

Product likes show you what shoppers want before they buy. There are two ways to add them.

The quick way (free)

In Settings → Content Types → Posts, add Products under Post Types and save. The button then appears under each product’s description, so this only works on products that have one.

The flexible way: Display Automation (Pro)

For a store, you usually want the button next to the price or the Add to cart button, where shoppers actually look. Display Automation in WP ULike Pro places it there without code:

  1. Go to WP ULike → Tools → Display Automation.
  2. Click Quick Start and choose WooCommerce Product.
  3. Pick a Button position: after the price, before or after Add to cart, after the product summary, or after the SKU and categories.
  4. Optionally choose a button style and counter just for products.
  5. Turn the rule on and click Save.
WP ULike Pro Display Automation rule for WooCommerce single products, with the button placed on the product page
A Display Automation rule: choose the platform, what gets liked and where the button goes.
A WooCommerce product page with a heart like button under the price showing 42 likes
The result: a heart button in the product summary, even on products without a description.

Each rule covers one spot, so you can add more: WooCommerce Shop puts compact buttons under each product in your shop and category pages, and WooCommerce Reviews lets shoppers like the most helpful reviews. If you use Display Automation for products, keep Products out of the free Post Types setting so you don’t get two buttons. Pro’s store reports then compare likes with sales, so you can see which liked products actually sell.

Other ways to add the button

Automatic Display covers most sites. When you want the button in a specific spot, use one of these:

  • ULike Button block: add it anywhere in the block editor. It uses the current post automatically.
  • Shortcode: [wp_ulike] for the current post, or [wp_ulike id="123"] for a specific one. See the shortcode guide.
  • Top List block: shows your most liked posts, comments or users on any page. The shortcode is [wp_ulike_top].
  • Elementor: WP ULike Pro includes Elementor widgets for the button and top lists.

What about the Facebook Like button?

Many guides still tell you to add Facebook’s Like button to WordPress. That no longer works: Meta announced that the Like and Comment plugins for outside websites would stop showing on February 10, 2026. If your site still has the old code, the button simply doesn’t appear, and you can remove it.

A like button that runs on your own site was the better choice anyway:

Facebook Like buttonWP ULike
Still worksNo, retired in 2026Yes
Where likes are savedOn FacebookIn your WordPress database
Visitor needs an accountYes, a Facebook accountNo
Third-party scriptFacebook’s SDK on every pageNone
Stats in WordPressNoYes, in Statistics
Works on comments and productsNoYes

If you also want people to share your posts on social media, add share buttons. WP ULike Pro includes social share buttons that work alongside likes.

Going further: dislikes, reactions and ratings

The free plugin is a full like button with no limits. WP ULike Pro is optional and adds like and dislike voting, emoji reactions and 5-star ratings, a list of who liked each post, and deeper reports. Here’s a one-minute tour:

Frequently asked questions

Is WP ULike free?

Yes. The free plugin on WordPress.org includes like buttons for posts, comments, WooCommerce, BuddyPress and bbPress, the Top List block and the statistics dashboard, with no vote limits.

Do visitors need an account to like a post?

No. Anyone can click the button. If you prefer, you can limit voting to logged-in users in the content type settings.

Can I add a like button to WooCommerce products?

Yes. In the free plugin, add Products under Post Types and the button appears under the product description. WP ULike Pro’s Display Automation lets you place it next to the price or the Add to cart button instead, and on shop pages and reviews.

Can I add a dislike button too?

Yes, with WP ULike Pro. Pick a template that supports dislikes, such as Simple Up/Down Vote, and visitors can vote both ways. Statistics then show likes and dislikes separately.

How do I hide the like button on a page?

Go to Settings, Content Types, Posts. Remove that kind of content from Post Types, or use Show Buttons On to skip the home page, archives or search. WP ULike Pro also adds a panel in the post editor to turn the button on or off for one post.

Does WP ULike work with caching plugins?

Yes. WP ULike works with major caching plugins, and its front end uses plain JavaScript without jQuery, so it stays light.

Is WP ULike GDPR friendly?

WP ULike can anonymize IP addresses and supports the WordPress personal data export and erase tools, so you can match it to your privacy policy.

Can I still use the Facebook Like button on WordPress?

No. Meta stopped showing its Like and Comment plugins on outside websites on February 10, 2026. A like button that runs on your own site, such as WP ULike, is the replacement.

Enjoyed this article?

Get more WordPress tips like this in our monthly newsletter: updates, guides, and product news.

Leave a Reply

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