WordPress.org

Support

Support » Plugins and Hacks » Taxonomy Images » [Plugin: Taxonomy Images] Limit items to display & random item list

[Plugin: Taxonomy Images] Limit items to display & random item list

  • 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? 😀

    http://wordpress.org/extend/plugins/taxonomy-images/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Taxonomy Images] Limit items to display & random item list’ is closed to new replies.
Skip to toolbar