This doesn’t work for me:
$cats = get_categories();
foreach ( $cats as $c ) {
$url = get_category_link( $c->term_id );
$img = $taxonomy_images_plugin->get_image_html( 'detail', $c->term_taxonomy_id );
if( !empty( $img ) )
print '<a href="' . $url . '">' . $img . '</a>';
}
Error returned:
Fatal error: Call to a member function get_image_html() on a non-object in /wp-content/themes/default/header.php on line 106
Not sure what’s going on here . . .