Hakuren Like Dislike Block

Description

Posts Like Dislike provides a shortcode, but in block themes shortcodes are processed after the whole template is built. Inside a Query Loop every card ends up pointing to the same post, so all votes go to one article.

This add-on adds a real “Like / Dislike” block that reads the post ID from the Query Loop context and asks Posts Like Dislike to render the buttons for exactly that post. Votes, counters and settings stay in Posts Like Dislike: nothing is duplicated and existing votes keep working.

Features

  • Native block for the Site Editor, templates and the Query Loop
  • The correct post in every card
  • Editor preview
  • Margin, padding and justification controls
  • No settings, no tracking, no external requests

This plugin is an add-on: it requires the free Posts Like Dislike plugin, which handles votes, counters and settings.

Blocks

This plugin provides 1 block.

  • Like / Dislike Like and dislike buttons from Posts Like Dislike. Works in templates and inside the Query Loop.

Installation

  1. Install and activate the Posts Like Dislike plugin.
  2. Install this plugin from Plugins > Add New, or upload the hakuren-like-dislike-block folder to /wp-content/plugins/.
  3. Activate Hakuren Like Dislike Block.
  4. In the Site Editor or the block editor, add the “Like / Dislike” block to your single post template or inside a Query Loop.

FAQ

Does it replace Posts Like Dislike?

No. It only adds a block. Votes, counters, styles and settings are still managed by Posts Like Dislike.

Will my existing votes be kept?

Yes. The block uses the same data as Posts Like Dislike, so existing votes are shown and counted as before.

Should I disable the automatic display in Posts Like Dislike?

If you place the block in your templates, you may want to disable the automatic display in the Posts Like Dislike settings to avoid showing the buttons twice.

Does it collect data or contact external services?

No. The plugin has no settings, stores nothing and makes no external requests.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Hakuren Like Dislike Block” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

0.1.1

  • Updated the Plugin URI to the plugin’s page on Hakuren Dev.
  • Bumped block version to 0.1.1.

0.1.0

  • First release.