Commit 596a7abf authored by Laura Rodrigues's avatar Laura Rodrigues

Mudança do get_category para get_term

parent efc781db
......@@ -25,7 +25,7 @@ use guaraci\images;
$post_categories = wp_get_post_categories( get_the_ID() );
foreach($post_categories as $category_id){
$category = get_category($category_id);
$category = get_term($category_id);
<div class="categories-list--category category-<?= $category->slug ?>">
<a href="<?= esc_url(get_term_link($category, 'category')) ?>"><?= $category->name ?></a>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment