Title: Jinx-Breadcrumbs
Author: Lukas Rydygel
Published: <strong>2020 年 11 月 30 日</strong>
Last modified: 2021 年 6 月 4 日

---

搜索插件

![](https://ps.w.org/jinx-breadcrumbs/assets/banner-772x250.jpg?rev=2428656)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/jinx-breadcrumbs/assets/icon-256x256.png?rev=2428656)

# Jinx-Breadcrumbs

 作者：[Lukas Rydygel](https://profiles.wordpress.org/lugat/)

[下载](https://downloads.wordpress.org/plugin/jinx-breadcrumbs.zip)

 * [详情](https://cn.wordpress.org/plugins/jinx-breadcrumbs/#description)
 * [评价](https://cn.wordpress.org/plugins/jinx-breadcrumbs/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/jinx-breadcrumbs/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/jinx-breadcrumbs/#developers)

 [支持](https://wordpress.org/support/plugin/jinx-breadcrumbs/)

## 描述

The plugin allows you to render breadcrumbs and configurate them with filters.

### Usage

Use the function ‘jinx_breadcrumbs’ to render the breadcrumbs where you want them
to be. You may overwrite the default arguments by passing an array to the function.

    ```
    <?php

      if (function_exists('jinx_breadcrumbs')) :

        jinx_breadcrumbs([
          // default args
          'home' => __('Home', 'jinx-breadcrumbs'),
          'search' => __('Search: "%s"', 'jinx-breadcrumbs'),
          '404' => __('Error 404', 'jinx-breadcrumbs'),
          'author' => __('Author: %s', 'jinx-breadcrumbs'),
          'year' => 'Y',
          'month' => 'F',
          'day' => 'd',
          'before' => '<nav aria-label="breadcrumb"><ol>',
          'after' => '</ol></nav>',
          'before_item' => '<li%s>',
          'after_item' => '</li>',
        ]);

      endif;

    ?>
    ```

You may also use the filter ‘jinx_jinx_breadcrumbs’ to overwrite them.

    ```
    <?php

      add_filter('jinx_breadcrumbs', function($args) {

        return array_merge($args, [
          'home' => __('Start', 'cca'),
          'search' => __('Your searched for "%s"', 'cca'),
        ]);

      });

    ?>
    ```

The plugin will automatically try to find the correct archive pages by using the
rewrite slug of custom taxonomies and post types.

If you may want to change this behavior, you may use some filters to manipulate 
the archive page.

If you return NULL, the archive page will be removed.

    ```
    <?php

      // filters the archive page, passing the PID, type ('taxonomy' or 'post_type') and name (eg. 'video')
      add_filter('jinx_breadcrumbs_archive', function($pid, $type, $name) {

        return $pid;

      }, 10, 3);

      // filters the archive page, passing the PID and name (eg. 'video')
      // the type is part of the filter (eg. 'jinx_breadcrumbs_archive_taxonomy')
      add_filter('jinx_breadcrumbs_archive_{type}', function($pid, $name) {

        return $pid;

      }, 10, 2);

      // filters the archive page, passing the PID
      // the type and name are part of the filter (eg. 'jinx_breadcrumbs_archive_post_type_video')
      add_filter('jinx_breadcrumbs_archive_{type}_{name}', function($pid) {

        return $pid;

      }, 10, 1);

    ?>
    ```

## 安装

 1. Unzip the downloaded package
 2. Upload `jinx-block-renderer` to the `/wp-content/plugins/` directory
 3. Activate the plugin through the ‘Plugins’ menu in WordPress

## 评价

此插件暂无评价。

## 贡献者及开发者

「Jinx-Breadcrumbs」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Lukas Rydygel ](https://profiles.wordpress.org/lugat/)

[帮助将「Jinx-Breadcrumbs」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/jinx-breadcrumbs)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/jinx-breadcrumbs/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/jinx-breadcrumbs/)，或通过[RSS](https://plugins.trac.wordpress.org/log/jinx-breadcrumbs/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/jinx-breadcrumbs/)。

## 额外信息

 *  版本 **0.2.11**
 *  最后更新：**5 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **5.5.18**
 *  PHP 版本 ** 7.1 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/jinx-breadcrumbs/)
 * 标签
 * [breadcrumbs](https://cn.wordpress.org/plugins/tags/breadcrumbs/)[seo](https://cn.wordpress.org/plugins/tags/seo/)
 *  [高级视图](https://cn.wordpress.org/plugins/jinx-breadcrumbs/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/jinx-breadcrumbs/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/jinx-breadcrumbs/reviews/)

## 贡献者

 *   [ Lukas Rydygel ](https://profiles.wordpress.org/lugat/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/jinx-breadcrumbs/)