{"id":163859,"date":"2022-10-22T03:01:24","date_gmt":"2022-10-22T03:01:24","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/breadcrumb-block\/"},"modified":"2026-08-16T09:05:20","modified_gmt":"2026-08-16T09:05:20","slug":"breadcrumb-block","status":"publish","type":"plugin","link":"https:\/\/ko.wordpress.org\/plugins\/breadcrumb-block\/","author":9299724,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.1.1","stable_tag":"1.1.1","tested":"7.1","requires":"5.9","requires_php":"7.0","requires_plugins":null,"header_name":"Breadcrumb Block","header_author":"Phi Phan","header_description":"A block to display the breadcrumb trails to your site, supports JSON-LD structured data","assets_banners_color":"","last_updated":"2026-08-16 09:05:20","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/boldblocks.net?utm_source=wp.org&utm_campaign=readme&utm_medium=link&utm_content=Breadcrumb+Block+Donate","header_plugin_uri":"https:\/\/boldblocks.net?utm_source=Breadcrumb+Block&utm_campaign=visit+site&utm_medium=link&utm_content=Plugin+URI","header_author_uri":"https:\/\/boldblocks.net","rating":5,"author_block_rating":5,"active_installs":3000,"downloads":34149,"num_ratings":14,"support_threads":0,"support_threads_resolved":0,"author_block_count":6,"sections":["description","installation","faq","changelog"],"tags":{"1.0.1":{"tag":"1.0.1","author":"Mr2P","date":"2022-12-01 02:33:39"},"1.0.10":{"tag":"1.0.10","author":"Mr2P","date":"2023-08-09 16:51:11"},"1.0.11":{"tag":"1.0.11","author":"Mr2P","date":"2023-08-12 06:52:05"},"1.0.12":{"tag":"1.0.12","author":"Mr2P","date":"2024-04-03 01:25:36"},"1.0.13":{"tag":"1.0.13","author":"Mr2P","date":"2024-04-30 03:14:56"},"1.0.14":{"tag":"1.0.14","author":"Mr2P","date":"2024-07-17 01:20:46"},"1.0.15":{"tag":"1.0.15","author":"Mr2P","date":"2024-10-28 02:33:42"},"1.0.16":{"tag":"1.0.16","author":"Mr2P","date":"2025-04-14 08:01:32"},"1.0.2":{"tag":"1.0.2","author":"Mr2P","date":"2022-12-08 12:06:02"},"1.0.3":{"tag":"1.0.3","author":"Mr2P","date":"2022-12-13 15:43:42"},"1.0.4":{"tag":"1.0.4","author":"Mr2P","date":"2023-01-19 14:43:39"},"1.0.5":{"tag":"1.0.5","author":"Mr2P","date":"2023-02-05 08:03:48"},"1.0.6":{"tag":"1.0.6","author":"Mr2P","date":"2023-02-12 03:31:48"},"1.0.7":{"tag":"1.0.7","author":"Mr2P","date":"2023-03-11 13:51:19"},"1.0.8":{"tag":"1.0.8","author":"Mr2P","date":"2023-03-20 01:32:21"},"1.0.9":{"tag":"1.0.9","author":"Mr2P","date":"2023-03-23 23:23:04"},"1.1.0":{"tag":"1.1.0","author":"Mr2P","date":"2025-11-24 03:04:49"},"1.1.1":{"tag":"1.1.1","author":"Mr2P","date":"2026-08-16 09:05:20"}},"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":14},"assets_icons":{"icon.svg":{"filename":"icon.svg","revision":2802777,"resolution":false,"location":"assets","locale":false}},"assets_banners":[],"assets_blueprints":{},"all_blocks":{"boldblocks\/breadcrumb-block":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","apiVersion":3,"name":"boldblocks\/breadcrumb-block","title":"Breadcrumb Block","category":"theme","description":"A simple breadcrumb trail block that supports JSON-LD structured data","keywords":["breadcrumb","navigation","menu","link"],"attributes":{"gap":{"type":"string","default":".4em"},"separator":{"type":"string","default":"\/"},"hideHomePage":{"type":"boolean","default":false},"hideCurrentPage":{"type":"boolean","default":false},"homeText":{"type":"string","default":""},"labels":{"type":"object","default":{}}},"supports":{"html":false,"anchor":true,"ariaLabel":true,"align":["wide","full"],"color":{"background":true,"text":true,"gradients":true,"link":true},"spacing":{"margin":["top","bottom"],"padding":true,"__experimentalDefaultControls":{"margin":true,"padding":true}},"__experimentalBorder":{"color":true,"radius":true,"style":true,"width":true,"__experimentalDefaultControls":false},"shadow":true,"typography":{"fontSize":true,"lineHeight":true,"__experimentalFontFamily":true,"__experimentalFontStyle":true,"__experimentalFontWeight":true,"__experimentalLetterSpacing":true,"__experimentalTextTransform":true,"__experimentalTextDecoration":true,"__experimentalDefaultControls":{"fontSize":true,"lineHeight":true,"fontAppearance":true,"textTransform":true},"interactivity":{"clientNavigation":true}}},"textdomain":"breadcrumb-block","editorScript":"file:.\/index.js","editorStyle":"file:.\/index.css","style":"file:.\/style-index.css"}},"tagged_versions":["1.0.1","1.0.10","1.0.11","1.0.12","1.0.13","1.0.14","1.0.15","1.0.16","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","1.1.0","1.1.1"],"block_files":["\/tags\/1.1.1\/build\/index.js","\/tags\/1.1.1\/build\/index.css","\/tags\/1.1.1\/build\/style-index.css"],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3176552,"resolution":"1","location":"assets","locale":"","width":411,"height":572}},"screenshots":{"1":"Block settings"}},"plugin_section":[172757],"plugin_tags":[1220,11353,148076,1865,1753],"plugin_category":[43],"plugin_contributors":[203545],"plugin_business_model":[],"class_list":["post-163859","plugin","type-plugin","status-publish","hentry","plugin_section-block","plugin_tags-block","plugin_tags-breadcrumb","plugin_tags-gutenberg","plugin_tags-menu","plugin_tags-navigation","plugin_category-customization","plugin_contributors-mr2p","plugin_committers-mr2p"],"banners":[],"icons":{"svg":"https:\/\/ps.w.org\/breadcrumb-block\/assets\/icon.svg?rev=2802777","icon":"https:\/\/ps.w.org\/breadcrumb-block\/assets\/icon.svg?rev=2802777","icon_2x":false,"generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/breadcrumb-block\/assets\/screenshot-1.png?rev=3176552","caption":"Block settings"}],"raw_content":"<!--section=description-->\n<p>This is a single-block plugin for the breadcrumb trail. It's simple, lightweight, SEO-friendly, and WooCommerce compatibility. It also includes some simple separator icons. It works everywhere: Page Editor, Site Editor, and template files.<\/p>\n\n<h3>How to customize the breadcrumb<\/h3>\n\n<ol>\n<li><p>How to change\/remove an item?<\/p>\n\n<pre><code>add_filter( 'breadcrumb_block_get_item', function ( $item_args, $context, $breadcrumbs_instance ) {\n  \/\/ Ignore items without context.\n  if ( ! $context || ! ( $context['object'] ?? false ) ) {\n    return $item_args;\n  }\n\n  \/\/ Eg: remove a term.\n  if ( 'term' === ( $context['type'] ?? '' ) &amp;&amp; 'term-slug' === $context['object']-&gt;slug ) {\n    return false;\n  }\n\n  \/\/ Eg: Change the title of a page.\n  if ( 'page' === ( $context['type'] ?? '' ) &amp;&amp; page_id_to_change === $context['object']-&gt;ID ) {\n    $item_args[0] = 'Make it shorter';\n  }\n\n  return $item_args;\n}, 10, 3 );\n<\/code><\/pre>\n\n<p>$item_args is a 3-item array: <code>[$item_label, $item_link, $item_attrs]<\/code>\n$context is an associative array: <code>['type' =&gt; 'item type', 'object' =&gt; 'item object']<\/code>. <code>type<\/code> can be one of the following values: <code>front_page<\/code>, <code>home<\/code>, <code>shop<\/code>, <code>page<\/code>, <code>post<\/code>, <code>single<\/code>, <code>term<\/code>, <code>taxonomy<\/code>, <code>post_type_archive<\/code>, <code>search<\/code>, <code>404<\/code>, <code>paged<\/code>, <code>author<\/code>, <code>date_year<\/code>, <code>date_month<\/code>, <code>date_day<\/code>, <code>attachment<\/code>.<\/p><\/li>\n<li><p>How to change the markup of the block?<\/p>\n\n<pre><code>add_filter( 'breadcrumb_block_get_breadcrumb_trail', function ( $markup, $args, $breadcrumbs_instance ) {\n  return $markup;\n}, 10, 3 );\n<\/code><\/pre><\/li>\n<li><p>How to add or remove the items from the breadcrumb trail?<\/p>\n\n<pre><code>add_filter( 'breadcrumb_block_get_items', function ( $items, $breadcrumbs_instance ) {\n  return $items;\n}, 10, 2 );\n<\/code><\/pre><\/li>\n<li><p>How to use a custom separator for the breadcrumb trail?<\/p>\n\n<pre><code>add_filter( 'breadcrumb_block_get_args', function ( $args ) {\n  \/\/ For example, change separator.\n  $args['separator'] = '&lt;svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" fill=\"currentColor\" width=\"1em\" height=\"1em\" viewBox=\"0 0 16 16\"&gt;&lt;path fill-rule=\"evenodd\" d=\"M3.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L9.293 8 3.646 2.354a.5.5 0 0 1 0-.708z\"\/&gt;&lt;path fill-rule=\"evenodd\" d=\"M7.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L13.293 8 7.646 2.354a.5.5 0 0 1 0-.708z\"\/&gt;&lt;\/svg&gt;';\n  return $args;\n} );\n<\/code><\/pre>\n\n<p>The custom separator should be an inline SVG. To make sure it displays properly, it should have three attributes: width, height, and fill. The values of these attributes should be as follows: <code>fill=\"currentColor\" width=\"1em\" height=\"1em\"<\/code>.\nUsing this hook, you can customize other attributes such as container, before, after, list_tag, item_tag, item_before, item_after, separator.<\/p><\/li>\n<li><p>How to prepend the blog page to all single posts?<\/p>\n\n<pre><code>add_action( 'breadcrumb_block_single_prepend', function ( $post, $breadcrumbs_instance ) {\n  if ( 'post' === $post-&gt;post_type ) {\n    $blog_id = get_option( 'page_for_posts');\n    if ( $blog_id ) {\n      $breadcrumbs_instance-&gt;add_item( get_the_title( $blog_id ), get_permalink( $blog_id ) );\n    }\n  }\n}, 10, 2 );\n<\/code><\/pre><\/li>\n<\/ol>\n\n<p>If this plugin is useful for you, please do a quick review and <a href=\"https:\/\/wordpress.org\/support\/plugin\/breadcrumb-block\/reviews\/#new-post\">rate it<\/a> on WordPress.org to help us spread the word. I would very much appreciate it.<\/p>\n\n<p>Please check out my other plugins if you're interested:<\/p>\n\n<ul>\n<li><strong><a href=\"https:\/\/wordpress.org\/plugins\/content-blocks-builder\">Content Blocks Builder<\/a><\/strong> - Build custom layouts and blocks visually in the Block Editor without needing a code editor, using only core blocks and native Gutenberg features.<\/li>\n<li><strong><a href=\"https:\/\/wordpress.org\/plugins\/display-a-meta-field-as-block\">Meta Field Block<\/a><\/strong> - A single block to display custom fields in the Block Editor without coding. It supports ACF, MetaBox, WooCommerce, meta, rest field, shortcode and more. Works everywhere: in the Site Editor (FSE), the Block Editor, inside Query Loop, WooCommerce Product Collection, Term Query blocks, and even in template files.<\/li>\n<li><strong><a href=\"https:\/\/wordpress.org\/plugins\/svg-block\">SVG Block<\/a><\/strong> - A block to display SVG images as blocks. Useful for images, icons, dividers, and buttons. It allows you to upload SVG images and load them into the icon library.<\/li>\n<li><strong><a href=\"https:\/\/wordpress.org\/plugins\/icon-separator\">Icon separator<\/a><\/strong> - A tiny block just like the core\/separator block but with the ability to add an icon.<\/li>\n<li><strong><a href=\"https:\/\/wordpress.org\/plugins\/block-enhancements\">Block Enhancements<\/a><\/strong> - Adds practical features to blocks like icons, box shadows, transforms, etc.<\/li>\n<li><strong><a href=\"https:\/\/wordpress.org\/plugins\/counting-number-block\">Counting Number Block<\/a><\/strong> - A block to display numbers with a counting effect<\/li>\n<li><strong><a href=\"https:\/\/wordpress.org\/plugins\/better-youtube-embed-block\">Better YouTube Embed Block<\/a><\/strong> - A block to solve the performance issue with embedded YouTube videos. It can also embed multiple videos and playlists.<\/li>\n<\/ul>\n\n<p>The plugin is developed using @wordpress\/create-block.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"what%20problem%20does%20this%20plugin%20solve%3F\"><h3>What problem does this plugin solve?<\/h3><\/dt>\n<dd><p>It provides a simple way to add a breadcrumb trail to your site.<\/p><\/dd>\n<dt id=\"who%20needs%20this%20plugin%3F\"><h3>Who needs this plugin?<\/h3><\/dt>\n<dd><p>Anyone can use this plugin.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.1<\/h4>\n\n<p><em>Release Date - 07 May 2026<\/em><\/p>\n\n<ul>\n<li>Improved - Updated instpector control style<\/li>\n<\/ul>\n\n<h4>1.1.0<\/h4>\n\n<p><em>Release Date - 24 November 2025<\/em><\/p>\n\n<ul>\n<li>Improved - Revamped inspector settings and added more sepaprator icons<\/li>\n<li>Added    - UI for inputting labels<\/li>\n<li>Added    - Support for shadow<\/li>\n<\/ul>\n\n<h4>1.0.16<\/h4>\n\n<p><em>Release Date - 16 January 2025<\/em><\/p>\n\n<ul>\n<li>Changed - Updated placeholder texts to be more meaningful (props <a href=\"https:\/\/github.com\/rafaelvolpi\">rafaelvolpi<\/a>).<\/li>\n<\/ul>\n\n<h4>1.0.15<\/h4>\n\n<p><em>Release Date - 28 October 2024<\/em><\/p>\n\n<ul>\n<li>Added   - Support clientNavigation interactivity<\/li>\n<li>Updated - Replace classnames with clsx<\/li>\n<li>Updated - Tested up to WP 6.7<\/li>\n<\/ul>\n\n<h4>1.0.14<\/h4>\n\n<p><em>Release Date - 07 May 2024<\/em><\/p>\n\n<ul>\n<li>Added    - Add the breadcrumbs instance to the <code>breadcrumb_block_get_item<\/code> hook<\/li>\n<li>Added    - Add the new hook <code>breadcrumb_block_single_prepend<\/code><\/li>\n<li>Improved - Add the commented text to remove the output not escaped warning<\/li>\n<\/ul>\n\n<h4>1.0.13<\/h4>\n\n<p><em>Release Date - 30 April 2024<\/em><\/p>\n\n<ul>\n<li>Added - A new hook <code>breadcrumb_block_get_item<\/code> for customizing\/removing each item of the breadcrumbs<\/li>\n<\/ul>\n\n<h4>1.0.12<\/h4>\n\n<p><em>Release Date - 22 September 2023<\/em><\/p>\n\n<ul>\n<li>Added - A new hook <code>breadcrumb_block_get_args<\/code> for customizing the output of the breadcrumb.<\/li>\n<\/ul>\n\n<h4>1.0.11<\/h4>\n\n<p><em>Release Date - 12 August 2023<\/em><\/p>\n\n<ul>\n<li>DEV - Refactor block metadata and upgrade to apiVerion 3<\/li>\n<li>DEV - Add a hook <code>apply_filters( 'breadcrumb_block_strip_shortcodes', false, $breadcrumb_instance )<\/code> to allow opt-in\/opt-out shortcodes in the post title. Thanks to Steven A. Zahm (https:\/\/github.com\/shazahm1)<\/li>\n<li>DEV - Add parent crumbs to other hierarchical post types. Thanks to Steven A. Zahm (https:\/\/github.com\/shazahm1)<\/li>\n<li>DEV - Add a hook <code>apply_filters( 'breadcrumb_block_add_post_type_name', true, $post, $breadcrumb_instance )<\/code> to allow opt-in\/opt-out post type name for custom post types<\/li>\n<li>Fix - Conflict style with Bootstrap's breadcrumb<\/li>\n<\/ul>\n\n<h4>1.0.10<\/h4>\n\n<p><em>Release Date - 13 Apr 2023<\/em><\/p>\n\n<ul>\n<li>DEV - Add a setting to input a custom home text<\/li>\n<\/ul>\n\n<h4>1.0.9<\/h4>\n\n<p><em>Release Date - 24 Mar 2023<\/em><\/p>\n\n<ul>\n<li>FIX - Error converting WP_Post_Type to string. Thanks to @tnchuntic for reporting it.<\/li>\n<\/ul>\n\n<h4>1.0.8<\/h4>\n\n<p><em>Release Date - 20 Mar 2023<\/em><\/p>\n\n<ul>\n<li>DEV - Make the block compatible with woocommerce<\/li>\n<\/ul>\n\n<h4>1.0.7<\/h4>\n\n<p><em>Release Date - 11 Mar 2023<\/em><\/p>\n\n<ul>\n<li>FIX - Add namespace to class_exists check<\/li>\n<\/ul>\n\n<h4>1.0.6<\/h4>\n\n<p><em>Release Date - 12 Feb 2023<\/em><\/p>\n\n<ul>\n<li>Add new hooks <code>breadcrumb_block_home_text<\/code>, <code>breadcrumb_block_home_url<\/code><\/li>\n<\/ul>\n\n<h4>1.0.5<\/h4>\n\n<p><em>Release Date - 05 Feb 2023<\/em><\/p>\n\n<ul>\n<li>DEV - Add a setting to hide the home page link<\/li>\n<\/ul>\n\n<h4>1.0.4<\/h4>\n\n<p><em>Release Date - 19 Jan 2023<\/em><\/p>\n\n<ul>\n<li>FIX - Gap issue: adding the semicolon to the CSS variable<\/li>\n<li>FIX - Could not modify breadcrumb data via the <code>breadcrumb_block_get_items<\/code> filter<\/li>\n<li>DEV - Add a new arrow icon as a separator<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<p><em>Release Date - 13 Dec 2022<\/em><\/p>\n\n<ul>\n<li>DEV - Use post_type-&gt;labels-&gt;name instead of post_type-&gt;labels-&gt;singular_name for custom post type archive name<\/li>\n<li>DEV - Add http:\/\/schema.org as @context for structured data<\/li>\n<li>Note: Big thanks to <a href=\"https:\/\/wordpress.org\/support\/users\/ja4st3r\">Yannick<\/a> for this release<\/li>\n<\/ul>\n\n<h4>1.0.2<\/h4>\n\n<p><em>Release Date - 08 Dec 2022<\/em><\/p>\n\n<ul>\n<li>DEV - Add a setting to hide the current page title<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<p><em>Release Date - 01 Dec 2022<\/em><\/p>\n\n<ul>\n<li>FIX - Syntax error on PHP version 7.0.0<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<p><em>Release Date - 22 Oct 2022<\/em><\/p>","raw_excerpt":"A simple breadcrumb trail block that supports JSON-LD structured data and is compatible with Woocommerce","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ko.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/163859","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ko.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ko.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ko.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=163859"}],"author":[{"embeddable":true,"href":"https:\/\/ko.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mr2p"}],"wp:attachment":[{"href":"https:\/\/ko.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=163859"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ko.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=163859"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ko.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=163859"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ko.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=163859"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ko.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=163859"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ko.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=163859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}