im not sure if this one has already a post.
i want my site to display only about ten (10) taxonomy items in index page. and if possible, display RANDOM items. here's my code
<?php
$removetitle = array('title' => null);
$terms = apply_filters( 'taxonomy-images-get-terms', '', array(
'taxonomy' => 'post_tag'
)
);
if ( ! empty( $terms ) ) {
print "\n" . '<ul id="client-avatar">';
foreach( (array) $terms as $term ) {
print "\n" . '<li>';
print "\n\t" . '<a href="' . esc_url( get_term_link( $term, $term->taxonomy ) ) . '" title="' . esc_html( $term->name ) . '" class="">' . wp_get_attachment_image( $term->image_id, 'full', 0, $removetitle ) . '</a>';
print "\n" . '</li>';
}
print "\n" . '</ul>';
}
?>
can anyone help? :D