fix: retrait des chapitres dans la liste des catégories

This commit is contained in:
Kazhnuz 2021-01-04 13:05:46 +01:00
parent 02e6065c9d
commit 3e1ff55abe

View file

@ -8,7 +8,7 @@
) ); ) );
foreach( $categories as $category ) { foreach( $categories as $category ) {
if ($category->slug != "blog") { if ($category->slug != "blog" && $category->slug != "chapters") {
echo '<a class="menu-element" href="' . get_category_link($category->term_id) . '">' . $category->name . '<span class="menu-label label-secondary">'. $category->count . '</span></a>'; echo '<a class="menu-element" href="' . get_category_link($category->term_id) . '">' . $category->name . '<span class="menu-label label-secondary">'. $category->count . '</span></a>';
} }
}?> }?>