WordPress: Custom Category Lists

WordPress has a category list widget which you can use to show all the used categories on your blog, you can even style it via CSS to make it pretty but sometimes designers like to make it hard for you and be all ” no don’t use images, because then we need to scale them for iPhone & iPad retina display, just use a symbols font for that! ” Crazy.

So heres a categories list, just like the widget, but you can style it or change the HTML in any way you like!

[php]
$args = array(‘orderby’ => ‘name’, ‘order’ => ‘ASC’);
$categories = get_categories($args);
foreach($categories as $category) {
echo ‘

  • ) ‘.$category->cat_name.’
  • ‘;
    }
    [/php]

    via Inigo Media