Gutenberg Blocks
Use the ULike Button and Top List blocks — periods, filters, and display toggles.
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 (locked Pro templates need an active license) |
Button type | Image or text |
Top List (wp-ulike/top-content)
Display a ranked list of most-liked content. Rankings and counters use the same Pulse-aware query layer as Statistics (5.2+).
| Attribute | Description |
|---|---|
Content type | Posts, comments, users, BuddyPress activities, bbPress topics |
Sort | Most liked / other available orders |
Period | Time window for the ranking (see presets below) |
Post types / taxonomy | Filter which posts feed the list |
Limit | Number of items |
Display toggles | Thumbnail, rank, count, heading |
Period presets
| Value | Label |
|---|---|
all | All time |
year / last_year | This year / Last year |
month / last_month | This month / Last month |
week / last_week | This week / Last week |
today / yesterday / day_before_yesterday | Day presets |
Custom last N days | Shown as “Last N days” in the editor |
All time counters match the public like button (meta counters). Date-filtered periods recount from the vote ledger so period lists stay accurate.
Templates API
Blocks fetch available templates from the wp-ulike/v1/templates REST endpoint.
Related: Shortcodes · Pulse Storage Engine
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.