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 images
But 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/3
This 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!