{"id":26237,"date":"2026-12-05T08:57:35","date_gmt":"2026-12-05T07:57:35","guid":{"rendered":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/"},"modified":"2026-12-05T09:01:17","modified_gmt":"2026-12-05T08:01:17","slug":"wordpress-like-button-block","status":"publish","type":"post","link":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/","title":{"rendered":"WordPress Like Button Block: A Gutenberg Guide"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If you write in the WordPress block editor, you can add a like button the same way you add a paragraph or an image: as a block. The free WP ULike plugin comes with two blocks, <strong>ULike Button<\/strong> and <strong>Top List<\/strong>, and it can also put a like button on every image in a Gallery block.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide shows how to use each one, with screenshots from a demo recipe site on WordPress 7.1. No code and no shortcodes.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1400\" height=\"875\" src=\"https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-like-button-block-inserter.webp\" alt=\"The WordPress block inserter with ulike typed in the search box, showing the ULike Button and Top List blocks\" class=\"wp-image-26231\" srcset=\"https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-like-button-block-inserter.webp 1400w, https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-like-button-block-inserter-300x188.webp 300w, https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-like-button-block-inserter-1024x640.webp 1024w, https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-like-button-block-inserter-768x480.webp 768w\" sizes=\"auto, (max-width: 1400px) 100vw, 1400px\" \/><figcaption class=\"wp-element-caption\">Type \u201culike\u201d in the block inserter to find both blocks.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">What you need<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The free <a href=\"https:\/\/wordpress.org\/plugins\/wp-ulike\/\">WP ULike<\/a> plugin. Both blocks and the Gallery option are free.<\/li>\n\n\n\n<li>WordPress 6.0 or newer with the block editor. It works with block themes like Twenty Twenty-Five and with classic themes.<\/li>\n\n\n\n<li>Optional: <a href=\"https:\/\/wpulike.com\/pricing\/\">WP ULike Pro<\/a> for 25+ button templates, emoji reactions and dislike rankings.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Want a button on every post automatically, without adding a block each time? That is a setting, not a block. Our main guide on <a href=\"https:\/\/wpulike.com\/blog\/add-like-button-to-wordpress-site\/\">how to add a like button to WordPress<\/a> covers it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to add the ULike Button block<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Open a post or page in the block editor.<\/li>\n\n\n\n<li>Click the <strong>+<\/strong> button and type \u201culike\u201d (or \u201clike\u201d) in the search box.<\/li>\n\n\n\n<li>Click <strong>ULike Button<\/strong>. The button appears where your cursor was.<\/li>\n\n\n\n<li>In the sidebar, pick a template, for example <strong>Heart<\/strong>.<\/li>\n\n\n\n<li>Click <strong>Save<\/strong> or <strong>Update<\/strong>.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1400\" height=\"875\" src=\"https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-like-button-block-settings.webp\" alt=\"The ULike Button block selected in the WordPress editor, with Custom Item ID set to 10 and the Heart template picked in the block settings\" class=\"wp-image-26232\" srcset=\"https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-like-button-block-settings.webp 1400w, https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-like-button-block-settings-300x188.webp 300w, https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-like-button-block-settings-1024x640.webp 1024w, https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-like-button-block-settings-768x480.webp 768w\" sizes=\"auto, (max-width: 1400px) 100vw, 1400px\" \/><figcaption class=\"wp-element-caption\">The ULike Button block settings: a custom item ID and the template picker.<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">The settings, in plain words<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Item Type<\/strong>: Posts or Comments. Leave it on Posts unless the block sits inside a comment.<\/li>\n\n\n\n<li><strong>Use Current Item ID<\/strong>: on by default, so the button likes the post it is on.<\/li>\n\n\n\n<li><strong>Custom Item ID<\/strong>: turn off Use Current Item ID and enter a post ID to make the button like a different post. Handy on a landing page about one recipe or product. Note that votes on a custom ID are not shown in your statistics.<\/li>\n\n\n\n<li><strong>Select a Template<\/strong>: the button style. \u201cUse Settings Default\u201d follows your global WP ULike settings, so changing the style there updates every button. Pro templates show a lock until you have Pro.<\/li>\n\n\n\n<li><strong>Button Type<\/strong>: show the template\u2019s icon or a text label, for templates that support text.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Use it in a Query Loop or comments<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The block knows where it is. Put it inside a Query Loop\u2019s post template and every post in the list gets its own button with its own count. In a block theme you can also add it to the Comment Template inside the Comments block, set Item Type to Comments, and every comment gets a like button.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to show your most liked posts with Top List<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The <strong>Top List<\/strong> block shows a ranked list of your most liked content. Add it the same way, then pick what to rank in the sidebar.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1400\" height=\"875\" src=\"https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-top-list-block-settings.webp\" alt=\"The Top List block selected in the WordPress editor showing five most liked recipes, with Type set to Top Posts, Status Filter Like, View By Descending and five items\" class=\"wp-image-26233\" srcset=\"https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-top-list-block-settings.webp 1400w, https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-top-list-block-settings-300x188.webp 300w, https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-top-list-block-settings-1024x640.webp 1024w, https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-top-list-block-settings-768x480.webp 768w\" sizes=\"auto, (max-width: 1400px) 100vw, 1400px\" \/><figcaption class=\"wp-element-caption\">The Top List block in the editor. Here it ranks recipes by likes.<\/figcaption><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Type<\/strong>: top posts, comments or users. Top activities and topics appear when BuddyPress or bbPress is active.<\/li>\n\n\n\n<li><strong>Status Filter<\/strong>: rank by likes. With Pro you can also rank by dislikes.<\/li>\n\n\n\n<li><strong>Number of items to show<\/strong>: how long the list is.<\/li>\n\n\n\n<li><strong>Period<\/strong>: all time, this week, this month, this year, the last X days, or your own date range.<\/li>\n\n\n\n<li><strong>Filters<\/strong>: only some post types, or posts from certain categories.<\/li>\n\n\n\n<li><strong>Customize<\/strong>: a heading, rank numbers, the like count, thumbnails or avatars and their size, and how long titles can be. <strong>Engaged Users<\/strong> adds the avatars of people who liked each item.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Colors, font size and spacing are in the block\u2019s Styles tab, like any core block. Two Top Lists side by side in a Columns block make a nice \u201cReader favorites\u201d section:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1400\" height=\"875\" src=\"https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-like-button-block-front.webp\" alt=\"A WordPress page with two Top List blocks side by side, most loved recipes with thumbnails and top fans with avatars, and a heart like button with 87 likes below\" class=\"wp-image-26234\" srcset=\"https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-like-button-block-front.webp 1400w, https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-like-button-block-front-300x188.webp 300w, https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-like-button-block-front-1024x640.webp 1024w, https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-like-button-block-front-768x480.webp 768w\" sizes=\"auto, (max-width: 1400px) 100vw, 1400px\" \/><figcaption class=\"wp-element-caption\">Two Top List blocks in Columns, and a ULike Button for one recipe. This is the live page, not the editor.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Add a like button to every image in a gallery<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This one isn\u2019t a separate block. Select any <strong>Gallery<\/strong> block, open the <strong>WP ULike<\/strong> panel in the block settings and turn on <strong>Show a like button on each image<\/strong>. Each image gets its own button and its own count, so visitors can like the photo they love, not just the post.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1400\" height=\"875\" src=\"https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-gallery-like-button.webp\" alt=\"A Gallery block selected in the WordPress editor with the WP ULike panel open and Show a like button on each image turned on\" class=\"wp-image-26235\" srcset=\"https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-gallery-like-button.webp 1400w, https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-gallery-like-button-300x188.webp 300w, https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-gallery-like-button-1024x640.webp 1024w, https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-gallery-like-button-768x480.webp 768w\" sizes=\"auto, (max-width: 1400px) 100vw, 1400px\" \/><figcaption class=\"wp-element-caption\">The WP ULike panel in the Gallery block settings.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">It is off by default, so galleries you already published don\u2019t change until you turn it on.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Blocks, shortcodes or automatic display?<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>You want<\/th><th>Use<\/th><\/tr><\/thead><tbody><tr><td>A button on every post, page or product<\/td><td><a href=\"https:\/\/wpulike.com\/blog\/add-like-button-to-wordpress-site\/\">Automatic display<\/a> in the WP ULike settings<\/td><\/tr><tr><td>A button in one specific spot<\/td><td>The ULike Button block<\/td><\/tr><tr><td>A \u201cmost liked\u201d list on a page or in a sidebar<\/td><td>The Top List block<\/td><\/tr><tr><td>Likes on gallery photos<\/td><td>The Gallery block\u2019s WP ULike option<\/td><\/tr><tr><td>A page built with Elementor<\/td><td><a href=\"https:\/\/wpulike.com\/blog\/wp-ulike-elementor-widgets\/\">The WP ULike Pro Elementor widgets<\/a><\/td><\/tr><tr><td>A theme file or a page builder without blocks<\/td><td>The <code>&#91;wp_ulike&#93;<\/code> and <code>&#91;wp_ulike_top&#93;<\/code> shortcodes (<a href=\"https:\/\/wpulike.com\/blog\/wp-ulike-shortcode\/\">shortcode guide<\/a>)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">If something doesn\u2019t look right<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>You see two buttons on a post.<\/strong> Automatic display already adds one. Remove the block, or turn off automatic display for that content type.<\/li>\n\n\n\n<li><strong>The button likes the wrong post.<\/strong> Check Use Current Item ID. On a landing page, turn it off and enter the right post ID.<\/li>\n\n\n\n<li><strong>Top List is empty.<\/strong> The period may be too short for your site. Try \u201cAll time\u201d first.<\/li>\n\n\n\n<li><strong>A template has a lock.<\/strong> That style is part of Pro. Pick one of the free ones, or <a href=\"https:\/\/wpulike.com\/templates\/\">see all templates<\/a>.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Still stuck? <a href=\"https:\/\/wpulike.com\/support\/\">Contact support<\/a> and we\u2019ll help.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-blocks-1\"><strong class=\"schema-faq-question\">Is the WP ULike like button block free?<\/strong> <p class=\"schema-faq-answer\">Yes. The ULike Button block, the Top List block and the Gallery option are all in the free WP ULike plugin. Pro adds more button templates and dislike rankings.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-blocks-2\"><strong class=\"schema-faq-question\">How do I add a like button in Gutenberg?<\/strong> <p class=\"schema-faq-answer\">Install WP ULike, open a post in the block editor, click +, search for \u201culike\u201d and add the ULike Button block. Pick a template in the sidebar and save.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-blocks-3\"><strong class=\"schema-faq-question\">Can I show the most liked posts in the block editor?<\/strong> <p class=\"schema-faq-answer\">Yes. Add the Top List block and set Type to Top Posts. You can choose the period, the number of posts, a category and whether to show thumbnails.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-blocks-4\"><strong class=\"schema-faq-question\">Does the block work in Full Site Editing templates?<\/strong> <p class=\"schema-faq-answer\">Yes. You can add the ULike Button block to templates and to a Query Loop. Each post in the loop gets its own button.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-blocks-5\"><strong class=\"schema-faq-question\">Can visitors like single images?<\/strong> <p class=\"schema-faq-answer\">Yes. Turn on Show a like button on each image in a Gallery block\u2019s WP ULike panel. Each image keeps its own count.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-blocks-6\"><strong class=\"schema-faq-question\">Will adding the block create a second button?<\/strong> <p class=\"schema-faq-answer\">It can, if automatic display is also on for that content type. Use one or the other on the same post.<\/p> <\/div><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/wordpress.org\/plugins\/wp-ulike\/\">Get WP ULike free<\/a> \u00b7 <a href=\"https:\/\/wpulike.com\/templates\/\">Browse templates<\/a> \u00b7 <a href=\"https:\/\/wpulike.com\/pricing\/\">See Pro plans<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you write in the WordPress block editor, you can add a like button the same way you add a paragraph or an image: as a block. The free WP ULike plugin comes with two blocks, ULike Button and Top List, and it can also put a like button on every image in a Gallery [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":26236,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-26237","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articles"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v29.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>WordPress Like Button Block (Gutenberg Guide) | WP ULike<\/title>\n<meta name=\"description\" content=\"Add a like button in the WordPress block editor with the free ULike Button block, show your most liked posts with Top List, and add likes to galleries.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WordPress Like Button Block (Gutenberg Guide) | WP ULike\" \/>\n<meta property=\"og:description\" content=\"Add a like button in the WordPress block editor with the free ULike Button block, show your most liked posts with Top List, and add likes to galleries.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/\" \/>\n<meta property=\"og:site_name\" content=\"WP ULike\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/wpulike\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-12-05T07:57:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-12-05T08:01:17+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-like-button-block.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1600\" \/>\n\t<meta property=\"og:image:height\" content=\"900\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Alimir\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@wpulike\" \/>\n<meta name=\"twitter:site\" content=\"@wpulike\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alimir\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/\"},\"author\":{\"name\":\"Alimir\",\"@id\":\"https:\\\/\\\/wpulike.com\\\/#\\\/schema\\\/person\\\/775669fad322a2d0abd7b90b0a13a343\"},\"headline\":\"WordPress Like Button Block: A Gutenberg Guide\",\"datePublished\":\"2026-12-05T07:57:35+00:00\",\"dateModified\":\"2026-12-05T08:01:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/\"},\"wordCount\":1126,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/wpulike.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wpulike.com\\\/wp-content\\\/uploads\\\/2026\\\/12\\\/wordpress-like-button-block.webp\",\"articleSection\":[\"Articles\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/#respond\"]}]},{\"@type\":[\"WebPage\",\"FAQPage\"],\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/\",\"url\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/\",\"name\":\"WordPress Like Button Block (Gutenberg Guide) | WP ULike\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wpulike.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wpulike.com\\\/wp-content\\\/uploads\\\/2026\\\/12\\\/wordpress-like-button-block.webp\",\"datePublished\":\"2026-12-05T07:57:35+00:00\",\"dateModified\":\"2026-12-05T08:01:17+00:00\",\"description\":\"Add a like button in the WordPress block editor with the free ULike Button block, show your most liked posts with Top List, and add likes to galleries.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/#breadcrumb\"},\"mainEntity\":[{\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/#faq-question-blocks-1\"},{\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/#faq-question-blocks-2\"},{\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/#faq-question-blocks-3\"},{\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/#faq-question-blocks-4\"},{\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/#faq-question-blocks-5\"},{\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/#faq-question-blocks-6\"}],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/#primaryimage\",\"url\":\"https:\\\/\\\/wpulike.com\\\/wp-content\\\/uploads\\\/2026\\\/12\\\/wordpress-like-button-block.webp\",\"contentUrl\":\"https:\\\/\\\/wpulike.com\\\/wp-content\\\/uploads\\\/2026\\\/12\\\/wordpress-like-button-block.webp\",\"width\":1600,\"height\":900,\"caption\":\"Add a like button block in WordPress with the free ULike Button and Top List blocks\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/wpulike.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WordPress Like Button Block: A Gutenberg Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/wpulike.com\\\/#website\",\"url\":\"https:\\\/\\\/wpulike.com\\\/\",\"name\":\"WP ULike\",\"description\":\"Turn Votes Into Actionable Audience Insight\",\"publisher\":{\"@id\":\"https:\\\/\\\/wpulike.com\\\/#organization\"},\"alternateName\":\"ULike\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/wpulike.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/wpulike.com\\\/#organization\",\"name\":\"WP ULike\",\"alternateName\":\"TechnoWich\",\"url\":\"https:\\\/\\\/wpulike.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wpulike.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/wpulike.com\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/site-icon.png\",\"contentUrl\":\"https:\\\/\\\/wpulike.com\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/site-icon.png\",\"width\":512,\"height\":512,\"caption\":\"WP ULike\"},\"image\":{\"@id\":\"https:\\\/\\\/wpulike.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/wpulike\\\/\",\"https:\\\/\\\/x.com\\\/wpulike\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/wpulike\\\/\",\"https:\\\/\\\/www.youtube.com\\\/@wpulike\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/wpulike.com\\\/#\\\/schema\\\/person\\\/775669fad322a2d0abd7b90b0a13a343\",\"name\":\"Alimir\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wpulike.com\\\/wp-content\\\/uploads\\\/wp-ulike\\\/avatars\\\/f0wa6CDK9emd.jpg\",\"url\":\"https:\\\/\\\/wpulike.com\\\/wp-content\\\/uploads\\\/wp-ulike\\\/avatars\\\/f0wa6CDK9emd.jpg\",\"contentUrl\":\"https:\\\/\\\/wpulike.com\\\/wp-content\\\/uploads\\\/wp-ulike\\\/avatars\\\/f0wa6CDK9emd.jpg\",\"caption\":\"Alimir\"},\"description\":\"I'm an engineer with experience in management, leading teams by example, and I'm very connected to motivational initiatives that help them to innovate.\",\"sameAs\":[\"http:\\\/\\\/wpulike.com\"]},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/#faq-question-blocks-1\",\"position\":1,\"url\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/#faq-question-blocks-1\",\"name\":\"Is the WP ULike like button block free?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Yes. The ULike Button block, the Top List block and the Gallery option are all in the free WP ULike plugin. Pro adds more button templates and dislike rankings.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/#faq-question-blocks-2\",\"position\":2,\"url\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/#faq-question-blocks-2\",\"name\":\"How do I add a like button in Gutenberg?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Install WP ULike, open a post in the block editor, click +, search for \u201culike\u201d and add the ULike Button block. Pick a template in the sidebar and save.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/#faq-question-blocks-3\",\"position\":3,\"url\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/#faq-question-blocks-3\",\"name\":\"Can I show the most liked posts in the block editor?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Yes. Add the Top List block and set Type to Top Posts. You can choose the period, the number of posts, a category and whether to show thumbnails.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/#faq-question-blocks-4\",\"position\":4,\"url\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/#faq-question-blocks-4\",\"name\":\"Does the block work in Full Site Editing templates?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Yes. You can add the ULike Button block to templates and to a Query Loop. Each post in the loop gets its own button.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/#faq-question-blocks-5\",\"position\":5,\"url\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/#faq-question-blocks-5\",\"name\":\"Can visitors like single images?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"Yes. Turn on Show a like button on each image in a Gallery block\u2019s WP ULike panel. Each image keeps its own count.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Question\",\"@id\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/#faq-question-blocks-6\",\"position\":6,\"url\":\"https:\\\/\\\/wpulike.com\\\/blog\\\/wordpress-like-button-block\\\/#faq-question-blocks-6\",\"name\":\"Will adding the block create a second button?\",\"answerCount\":1,\"acceptedAnswer\":{\"@type\":\"Answer\",\"text\":\"It can, if automatic display is also on for that content type. Use one or the other on the same post.\",\"inLanguage\":\"en-US\"},\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WordPress Like Button Block (Gutenberg Guide) | WP ULike","description":"Add a like button in the WordPress block editor with the free ULike Button block, show your most liked posts with Top List, and add likes to galleries.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/","og_locale":"en_US","og_type":"article","og_title":"WordPress Like Button Block (Gutenberg Guide) | WP ULike","og_description":"Add a like button in the WordPress block editor with the free ULike Button block, show your most liked posts with Top List, and add likes to galleries.","og_url":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/","og_site_name":"WP ULike","article_publisher":"https:\/\/www.facebook.com\/wpulike\/","article_published_time":"2026-12-05T07:57:35+00:00","article_modified_time":"2026-12-05T08:01:17+00:00","og_image":[{"width":1600,"height":900,"url":"https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-like-button-block.webp","type":"image\/webp"}],"author":"Alimir","twitter_card":"summary_large_image","twitter_creator":"@wpulike","twitter_site":"@wpulike","twitter_misc":{"Written by":"Alimir","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/#article","isPartOf":{"@id":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/"},"author":{"name":"Alimir","@id":"https:\/\/wpulike.com\/#\/schema\/person\/775669fad322a2d0abd7b90b0a13a343"},"headline":"WordPress Like Button Block: A Gutenberg Guide","datePublished":"2026-12-05T07:57:35+00:00","dateModified":"2026-12-05T08:01:17+00:00","mainEntityOfPage":{"@id":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/"},"wordCount":1126,"commentCount":0,"publisher":{"@id":"https:\/\/wpulike.com\/#organization"},"image":{"@id":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/#primaryimage"},"thumbnailUrl":"https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-like-button-block.webp","articleSection":["Articles"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/#respond"]}]},{"@type":["WebPage","FAQPage"],"@id":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/","url":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/","name":"WordPress Like Button Block (Gutenberg Guide) | WP ULike","isPartOf":{"@id":"https:\/\/wpulike.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/#primaryimage"},"image":{"@id":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/#primaryimage"},"thumbnailUrl":"https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-like-button-block.webp","datePublished":"2026-12-05T07:57:35+00:00","dateModified":"2026-12-05T08:01:17+00:00","description":"Add a like button in the WordPress block editor with the free ULike Button block, show your most liked posts with Top List, and add likes to galleries.","breadcrumb":{"@id":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/#breadcrumb"},"mainEntity":[{"@id":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/#faq-question-blocks-1"},{"@id":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/#faq-question-blocks-2"},{"@id":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/#faq-question-blocks-3"},{"@id":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/#faq-question-blocks-4"},{"@id":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/#faq-question-blocks-5"},{"@id":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/#faq-question-blocks-6"}],"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/#primaryimage","url":"https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-like-button-block.webp","contentUrl":"https:\/\/wpulike.com\/wp-content\/uploads\/2026\/12\/wordpress-like-button-block.webp","width":1600,"height":900,"caption":"Add a like button block in WordPress with the free ULike Button and Top List blocks"},{"@type":"BreadcrumbList","@id":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wpulike.com\/"},{"@type":"ListItem","position":2,"name":"WordPress Like Button Block: A Gutenberg Guide"}]},{"@type":"WebSite","@id":"https:\/\/wpulike.com\/#website","url":"https:\/\/wpulike.com\/","name":"WP ULike","description":"Turn Votes Into Actionable Audience Insight","publisher":{"@id":"https:\/\/wpulike.com\/#organization"},"alternateName":"ULike","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wpulike.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/wpulike.com\/#organization","name":"WP ULike","alternateName":"TechnoWich","url":"https:\/\/wpulike.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpulike.com\/#\/schema\/logo\/image\/","url":"https:\/\/wpulike.com\/wp-content\/uploads\/2026\/06\/site-icon.png","contentUrl":"https:\/\/wpulike.com\/wp-content\/uploads\/2026\/06\/site-icon.png","width":512,"height":512,"caption":"WP ULike"},"image":{"@id":"https:\/\/wpulike.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/wpulike\/","https:\/\/x.com\/wpulike","https:\/\/www.linkedin.com\/company\/wpulike\/","https:\/\/www.youtube.com\/@wpulike"]},{"@type":"Person","@id":"https:\/\/wpulike.com\/#\/schema\/person\/775669fad322a2d0abd7b90b0a13a343","name":"Alimir","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpulike.com\/wp-content\/uploads\/wp-ulike\/avatars\/f0wa6CDK9emd.jpg","url":"https:\/\/wpulike.com\/wp-content\/uploads\/wp-ulike\/avatars\/f0wa6CDK9emd.jpg","contentUrl":"https:\/\/wpulike.com\/wp-content\/uploads\/wp-ulike\/avatars\/f0wa6CDK9emd.jpg","caption":"Alimir"},"description":"I'm an engineer with experience in management, leading teams by example, and I'm very connected to motivational initiatives that help them to innovate.","sameAs":["http:\/\/wpulike.com"]},{"@type":"Question","@id":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/#faq-question-blocks-1","position":1,"url":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/#faq-question-blocks-1","name":"Is the WP ULike like button block free?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Yes. The ULike Button block, the Top List block and the Gallery option are all in the free WP ULike plugin. Pro adds more button templates and dislike rankings.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/#faq-question-blocks-2","position":2,"url":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/#faq-question-blocks-2","name":"How do I add a like button in Gutenberg?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Install WP ULike, open a post in the block editor, click +, search for \u201culike\u201d and add the ULike Button block. Pick a template in the sidebar and save.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/#faq-question-blocks-3","position":3,"url":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/#faq-question-blocks-3","name":"Can I show the most liked posts in the block editor?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Yes. Add the Top List block and set Type to Top Posts. You can choose the period, the number of posts, a category and whether to show thumbnails.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/#faq-question-blocks-4","position":4,"url":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/#faq-question-blocks-4","name":"Does the block work in Full Site Editing templates?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Yes. You can add the ULike Button block to templates and to a Query Loop. Each post in the loop gets its own button.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/#faq-question-blocks-5","position":5,"url":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/#faq-question-blocks-5","name":"Can visitors like single images?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"Yes. Turn on Show a like button on each image in a Gallery block\u2019s WP ULike panel. Each image keeps its own count.","inLanguage":"en-US"},"inLanguage":"en-US"},{"@type":"Question","@id":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/#faq-question-blocks-6","position":6,"url":"https:\/\/wpulike.com\/blog\/wordpress-like-button-block\/#faq-question-blocks-6","name":"Will adding the block create a second button?","answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"It can, if automatic display is also on for that content type. Use one or the other on the same post.","inLanguage":"en-US"},"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/wpulike.com\/api\/wp\/v2\/posts\/26237","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpulike.com\/api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpulike.com\/api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpulike.com\/api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wpulike.com\/api\/wp\/v2\/comments?post=26237"}],"version-history":[{"count":1,"href":"https:\/\/wpulike.com\/api\/wp\/v2\/posts\/26237\/revisions"}],"predecessor-version":[{"id":26245,"href":"https:\/\/wpulike.com\/api\/wp\/v2\/posts\/26237\/revisions\/26245"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpulike.com\/api\/wp\/v2\/media\/26236"}],"wp:attachment":[{"href":"https:\/\/wpulike.com\/api\/wp\/v2\/media?parent=26237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpulike.com\/api\/wp\/v2\/categories?post=26237"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpulike.com\/api\/wp\/v2\/tags?post=26237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}