Like Post Block


The Like Post Block plugin registers a WordPress block that allows you to add a like button to your WordPress block editor.

You can insert this block in a single post, page, custom post type, and you can also insert it in any Gutenberg template.

Key Features

  • Add a like button to any post, page or custom post type
  • Limit the number of likes per user
  • Save user’s IP address to prevent multiple likes
  • Supports any Gutenberg template



  • Like Post block
  • Like Post block settings
  • Like Post block style settings
  • Inactive like button on the front-end
  • Active like button on the front-end


Aquesta extensió proporciona 1 bloc.

  • Like Post Add a button to like any post type.


This section describes how to install the plugin and get it working.

  1. Upload the plugin files to the /wp-content/plugins/like-post-block directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the “Plugins” screen in WordPress.
  3. Inside the Block Editor, search the “Like Post” block and insert it.


Can I insert the block in any Gutenberg template?

Yes, you can insert the block in any Gutenberg template.

Can I limit the number of likes per user?

Yes, you can limit the number of likes per user. The default value is 10 and the minimum value is 1. This setting is per block, so you can have different values for each block.

Can I save the user’s IP address to prevent multiple likes?

Yes, you can save the user’s IP address to prevent multiple likes. This action happens automatically.

Can the user likes comments?

No, the user can only like posts, pages and custom post types.


1 de març de 2024
I am just testing the ‘Like Post Block’ locally at the minute, and it’s really great. It’s nearly what I am looking for (at least visually). I like that the plugin seems very light, and that it works well with the Gutenberg Query Loop Block. May I suggest some new features?1) Option to use it as a ‘Wishlist’ type plugin, for Posts (Not WooCommerce), and to go with it;2) A new Block for the Navigation / Menu with a heart (or customisable icon) so we can display all the Posts that have been liked by the visitors, in case they want to come back and carry on reading the previously favorited posts.3) With the above options, a way to remove the counter (no numbers).WordPress have a video somewhere, showing an example of a site reviewing videos, to showcase what will be possible with WP6.5, it’s very impressive. All posts have the two states on/off heart icon, and one on the menu. Thank you Roel! Yours truly,Gin
8 de febrer de 2024
I’ve used this plugin to add a simple like button to the posts in my blog, and I’m very happy with the results and functionality. The block is simple to use but has a few very useful settings (like limiting the number of likes per ip per post) and customization option. It doesn’t add any unnecessary settings to the admin. And the cherry on top is the excellent support!
Llegiu tota la 1 ressenya

Col·laboradors i desenvolupadors

«Like Post Block» és programari de codi obert. La següent gent ha col·laborat en aquesta extensió.


Registre de canvis


  • New setting: Unlike when click the button again (#10)
  • New setting: Add unlimited setting (#12)


  • Like counter functionality uses last post inside query loop (#8).


  • Restore the index.asset.php file because it’s needed by WordPress.


  • Render the like button with AJAX to avoid caching systems.
  • The rolpb_likes meta key can be found in each REST API for posts, pages and custom post types.
  • New Likes column in the posts, pages and custom post types list tables.


  • Initial release