15 lines
515 B
PHP
15 lines
515 B
PHP
|
<div class="card card-primary">
|
||
|
<div class="card-header"><i class="fa fa-folder"></i> Catégories</div>
|
||
|
<div class="card-menu">
|
||
|
<?php
|
||
|
$categories = get_categories( array(
|
||
|
'orderby' => 'name',
|
||
|
'order' => 'ASC'
|
||
|
) );
|
||
|
|
||
|
foreach( $categories as $category ) {
|
||
|
echo '<a class="menu-element" href="' . get_category_link($category->term_id) . '">' . $category->name . '<span class="menu-label label-secondary">'. $category->count . '</span></a>';
|
||
|
}?>
|
||
|
</div>
|
||
|
</div>
|