Commit 2b5d3edb authored by Isaque Melo's avatar Isaque Melo
Browse files

Remove uncategorized from list

parent fb395f72
...@@ -26,11 +26,14 @@ use guaraci\images; ...@@ -26,11 +26,14 @@ use guaraci\images;
foreach($post_categories as $category_id){ foreach($post_categories as $category_id){
$category = get_term($category_id); $category = get_term($category_id);
if($category_id != 1){
?> ?>
<div class="categories-list--category category-<?= $category->slug ?>"> <div class="categories-list--category category-<?= $category->slug ?>">
<a href="<?= esc_url(get_term_link($category, 'category')) ?>"><?= $category->name ?></a> <a href="<?= esc_url(get_term_link($category, 'category')) ?>"><?= $category->name ?></a>
</div> </div>
<?php <?php
}
} }
?> ?>
</div> </div>
...@@ -50,4 +53,4 @@ use guaraci\images; ...@@ -50,4 +53,4 @@ use guaraci\images;
</div> </div>
<?php if($link->url): ?> <?php if($link->url): ?>
<a href="<?= $link->url ?>" class="goto"><?= $link->label ?></a> <a href="<?= $link->url ?>" class="goto"><?= $link->label ?></a>
<?php endif; ?> <?php endif; ?>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment