X3P0: Breadcrumbs

外掛說明

X3P0 Breadcrumbs is one of the most advanced and robust breadcrumb navigation systems ever built for WordPress. It was born from a small script first released in 2009 and has grown into a system that can handle nearly any site’s setup to show the most accurate breadcrumbs for each page.

Blocks and Classic Support

The plugin works with both block and classic themes, so you can use it on any WordPress site.

For block themes, you can insert it into any template or template part via the WordPress Site Editor. Ideally, this would be something like the Header part, which is generally shown on every page of the site.

For classic themes, you must manually add the PHP code to your theme to call the Breadcrumbs block like so:

<?php echo do_blocks('<!-- wp:x3p0/breadcrumbs /-->'); ?>

Alternatively, you can build out the breadcrumbs using the available PHP classes. See the plugin’s README on GitHub for more details.

How It Works

This plugin automatically detects your permalink setup and displays breadcrumbs based on that structure. Nearly all sites have some sort of hierarchy. The plugin recognizes that and builds a set of unique breadcrumbs for each page on your site.

This means that it can also detect custom post types and taxonomies right out of the box. Whatever you throw at it, it’s got a solution.

螢幕擷圖

  • Breadcrumbs block in the Site Editor.
  • Home icon picker.
  • Separator icon picker.

適用於區塊編輯器

這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。

  • Breadcrumbs Add a breadcrumb trail back to the site homepage. Breadcrumb items appear as placeholders in the editor and will populate with the correct data on the site front end.

常見問題集

Can you add X, Y, or Z feature?

Feel free to open a ticket on the plugin’s GitHub repository. We’ll chat about it. The PHP for the block is much more robust than what’s currently controllable via the block editor, so it’s likely the feature already exists—it just needs the editor UI component built out.

使用者評論

2025 年 4 月 28 日
Really nice README that shows how to use hooks and filters to make the plugin do what you want. A site i’m working on did not need taxonomies so I simply added a filter that removed it from the breadcrumbs really nice!Would maybe be helpful for non codes to add options to hade parts of the permalink structure if for example like my website, the default category taxonomy is not used.
2024 年 11 月 8 日
Simple, well-coded, and incredibly performant, X3P0: Breadcrumbs rapidly became one of my favorite plugins due to its lightweight approach and design freedom. Definitely should be part of the WordPress core.
閱讀全部 3 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈X3P0: Breadcrumbs〉的開發相關工作。

參與者

〈X3P0: Breadcrumbs〉外掛目前已有 2 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈X3P0: Breadcrumbs〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

Please see the CHANGELOG.md file included with the plugin file. Or, you can view the online changelog.