diff --git a/components/article/breadcrumb.php b/components/article/breadcrumb.php index b1cebd0..1da8edd 100644 --- a/components/article/breadcrumb.php +++ b/components/article/breadcrumb.php @@ -1,10 +1,20 @@
diff --git a/components/article/terms.php b/components/article/terms.php index ab35bed..608c872 100644 --- a/components/article/terms.php +++ b/components/article/terms.php @@ -1,9 +1,15 @@ term_id ) ) . "' class='btn-small btn-info'> " . $category->cat_name . ""; + if (has_category('chapters')) { + $romans = get_the_terms($post->ID, 'roman'); + foreach( $romans as $roman ) { + echo " " . $roman->name . ""; + } + } else { + $categories = get_the_category(); + foreach( $categories as $category ) { + echo " " . $category->cat_name . ""; + } } - $tags = get_the_tags(); if ($tags) { foreach( $tags as $tag ) { diff --git a/components/preview-list.php b/components/preview-list.php index 306717a..65a73a6 100644 --- a/components/preview-list.php +++ b/components/preview-list.php @@ -9,8 +9,15 @@

-
" . $category[0]->cat_name . ""; ?>
+
" . $category[0]->cat_name . ""; + } else { + $romans = get_the_terms($post->ID, 'roman'); + echo"" . $romans[0]->name . ""; + } + ?>