Function  –> get_categories( string|array $args = ” )

Retrieve list of category objects.

Example

<?php
$categories = get_categories( array(
‘orderby’ => ‘name’,
‘order’ => ‘ASC’ 234 more words