[WordPress] 外掛分享: Full Breadcrumb

首頁外掛目錄 › Full Breadcrumb
200+
安裝啟用
★★★★
4/5 分(2 則評價)
4867 天前
最後更新
問題解決
WordPress 2.8+ v1.2 上架:2012-08-18

內容簡介

支援階層式分類

在頁面、文章、自訂文章、分類、稅項、標籤、作者、附件和封存頁面中顯示面包屑。

基本使用

將這段程式碼 <?php if (function_exists('show_full_breadcrumb')) show_full_breadcrumb(); ?> 放入你的主題中即可享受!

或使用以下程式獲取面包屑:<?php if (function_exists('get_full_breadcrumb')) $var = get_full_breadcrumb(); ?>

在 get_full_breadcrumb 中,您可以使用額外的參數 'type' => 'array' 以返回帶有連結的陣列。例如:array( 'type' => 'array' )

基本自定義
<?php
show_full_breadcrumb(
array(
'separator' => array(
'content' => '&raquo;'
), // 設置FALSE隱藏
'home' => array(
'showLink' => false
)
)
);
?>

高級自定義
<?php
if (function_exists('show_full_breadcrumb')) show_full_breadcrumb(
array(
'labels' => array(
'local' => __('您在這裡:'), // 設置FALSE隱藏
'home' => __('首頁'),
'page' => __('頁面'),
'tag' => __('標籤'),
'search' => __('搜索:'),
'author' => __('由'),
'404' => __('錯誤404 &rsaquo; 找不到頁面')
),
'separator' => array(
'element' => 'span',
'class' => 'separator',
'content' => '&rsaquo;'
),// 設置FALSE隱藏
'local' => array(
'element' => 'span',
'class' => 'local'
),
'home' => array(
'showLink' => false,
'showBreadcrumb' => true
),
'actual' => array(
'element' => 'span',
'class' => 'actual'
),// 設置FALSE隱藏
'quote' => array(
'tag' => true,
'search' => true
),
'page_ancestors' => array(
'showLink' => false
)
)
);
?>

葡萄牙語-BR設置
<?php
if (function_exists('show_full_breadcrumb')) show_full_breadcrumb(
array(
'labels' => array(
'local' => __('Você está aqui:'), // 設置FALSE隱藏
'home' => __('Início'),
'page' => __('Página'),
'tag' => __('Etiqueta'),
'search' => __('Procurando por'),
'author' => __('Publicado por'),
'404' => __('Erro 404 &rsaquo; Página não encontrada')
),
'separator' => array(
'element' => 'span',
'class' => 'separator',
'content' => '&rsaquo;'
), // 設置FALSE隱藏
'home' => array(
'showLink' => true
)
)
);
?>

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.2) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Full Breadcrumb」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Support Hierarquical Taxonomies

Show breadcrumb in pages, posts, custom posts, categories, taxonomies, tags, authors, attachments and archives.
Basic Usage
Put this code in your theme and enjoy!
Or, for to get the breadcrumb:
In get_full_breadcrumb you can use the additional parameter 'type' => 'array' to return an array with the links. eg. array( 'type' => 'array' )
Basic Customization
array(
'content' => '»'
), // set FALSE to hide
'home' => array(
'showLink' => false
)
)
);
?>

Advanced Customization
array(
'local' => __('You are here:'), // set FALSE to hide
'home' => __('Home'),
'page' => __('Page'),
'tag' => __('Tag'),
'search' => __('Searching for'),
'author' => __('Published by'),
'404' => __('Error 404 › Page not found')
),
'separator' => array(
'element' => 'span',
'class' => 'separator',
'content' => '›'
), // set FALSE to hide
'local' => array(
'element' => 'span',
'class' => 'local'
),
'home' => array(
'showLink' => false,
'showBreadcrumb' => true
),
'actual' => array(
'element' => 'span',
'class' => 'actual'
), // set FALSE to hide
'quote' => array(
'tag' => true,
'search' => true
),
'page_ancestors' => array(
'showLink' => false
)
)
);
?>

Settings for Portuguese-BR
array(
'local' => __('Você está aqui:'), // set FALSE to hide
'home' => __('Início'),
'page' => __('Página'),
'tag' => __('Etiqueta'),
'search' => __('Buscando'),
'author' => __('Publicado por'),
'404' => __('Error 404 › Página não encontrada')
),
'separator' => array(
'element' => 'span',
'class' => 'separator',
'content' => '›'
), // set FALSE to hide
'home' => array(
'showLink' => true
)
)
);
?>

延伸相關外掛

文章
Filter
Apply Filters
Mastodon