Pagination Taxonomy Terms
-
Hi all,
I have created a taxonomy that name is “type”. In this taxonomy, I have 80 terms. Similar :: Books, Pens, Pencils, CDs,… Also I have created a page that name is “productions.php” for show this terms. With This Plugin, I attach image to my terms :
Taxonomy imagesBut The 80s item is very long in one page and I am going to pagination productions.php, Similar pagination posts. (I want to pagination taxonomy terms in page)
Sample:
/productions
/productions/page/2
/productions/page/3This is my code :
<?php //list terms in a given taxonomy using wp_list_categories(also useful as a widget) $args = array( 'taxonomy' => 'type', 'term_args' => array( 'orderby' => 'name', 'title_li' => '', 'hide_empty' => 0, 'parent' => 0, ) ); ?> <?php $terms = apply_filters( 'taxonomy-images-get-terms', '', $args ); if ( ! empty( $terms ) ): ?> <?php foreach( (array) $terms as $term ): ?> <ul class="category"> <li class="thumb"><a href="<?php echo esc_url( get_term_link( $term, $term->taxonomy ) ); ?>"><?php echo wp_get_attachment_image( $term->image_id, 'full' )?></a></li> <li><a href="<?php bloginfo('url') ?><?php echo '/'.$term->taxonomy.'/'.$term->slug ?>"><?php echo $term->name; ?></a></li> </ul> <?php endforeach; ?> <?php endif; ?>
,…
Can anybody help me?
Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Pagination Taxonomy Terms’ is closed to new replies.