Gutenberg Blocks
Use the ULike Button and Top List blocks in the block editor.
Available blocks
ULike Button (wp-ulike/button)
Place a like button on any post or page.
| Attribute | Description |
|---|---|
For | Content type (post, comment, etc.) |
Item ID | Specific item, or use current post |
Template | Button style preset |
Button type | Image or text |
Top List (wp-ulike/top-content)
Display a ranked list of most-liked content.
| Attribute | Description |
|---|---|
Content type | Posts, comments, activities, etc. |
Sort & period | Order and time range |
Post types / taxonomy | Filter sources |
Limit | Number of items |
Display toggles | Thumbnail, rank, count, heading |
Templates API
Blocks fetch available templates from wp-ulike/v1/templates REST endpoint.
Related articles
Continue with these guides
Did this article help?
Pick how you feel, add a note if you want, then hit Send. It takes two seconds and helps us improve this guide.