CTTC Academy Wp Theme


Cisco academy

Advertisements

Get Category links dynamic


<?php
$args=array(
‘orderby’ => ‘id’,
‘order’ => ‘ASC’
);
$categories=get_categories($args);
foreach($categories as $category) {
echo ‘<li><a href=”‘ . get_category_link( $category->term_id ) . ‘”  ‘ . ‘><p align=”center”>’ . $category->description .'</p></a> </li> ‘;
}
?>