I am currently using this code
$terms = apply_filters( 'taxonomy-images-get-terms', '' );
if ( ! empty( $terms ) ) {
print '<ul>';
foreach( (array) $terms as $term ) {
print '<li><a href="' . esc_url( get_term_link( $term, $term->taxonomy ) ) . '">' . wp_get_attachment_image( $term->image_id, 'detail' ) . '</li>';
}
print '</ul>';
}
and I have tried everything including putting this example
Array
(
[0] => stdClass Object
(
[term_id] => 8
[name] => Pirate
[slug] => pirate
[term_group] => 0
[term_taxonomy_id] => 8
[taxonomy] => category
[description] => Pirates live in the ocean and ride around on boats.
[parent] => 0
[count] => 1
[image_id] => 44
)
)
to display the list of terms I have in the taxonomy, but (a) nothing is displayed, (b)I have the word "array" displayed or (c) gettings errors about the syntax is incorrect. I can display a single term with the image.
Version 0.6 did exactly what I wanted and displayed correctly and I have backed this up incase I need to revert to this version, also, this version allowed shortcodes. However, as a person who does not have a great knowledge on php, I am struggling with the example provided for displaying all the taxonomny terms.
All I want is something simple that would output all the terms for a given taxonomy as well as a description of that term.
This is still a fantastic plugin and I would recommend it.
Any help would be most appreciated.