fix: breadcrumb navigation level

pull/230/head
Seaton Jiang 2020-06-08 14:22:03 +08:00
parent 81271b8481
commit ca3da08c5a
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,7 @@
* 文章内容
* @author Seaton Jiang <seaton@vtrois.com>
* @license MIT License
* @version 2020.03.16
* @version 2020.06.08
*/
get_header();
@ -27,6 +27,7 @@ $select_col = $col_array[kratos_option('g_article_wodgets', 'two_side')];
<?php
$cat_id = get_the_category()[0]->term_id;
$if_parent = TRUE;
$breadcrumb = "";
while ($if_parent == TRUE) {
$cat_object = get_category($cat_id);
$cat = $cat_object->term_id;