Hi,
I would like to paginate a custom taxonomy terms listing.
Here are some details :
- Custom taxonomy : scenographie
- terms (unique) inside : scene.
Code in my template :
$taxonomyName = "scenographie";
$terms = get_terms($taxonomyName,array(
'parent' => 67
));
foreach($terms as $term) {?>
<div id="post-<?php the_ID();?>" class="posts">
<div class="scene-list-thb">
<?php $tax_term_id = $term->term_taxonomy_id;
$images = get_option('taxonomy_image_plugin');?>
<a href="<?php echo get_term_link($term->slug,$taxonomyName)?>" title="<?php echo $term->name ?>">
<?php echo wp_get_attachment_image( $images[$tax_term_id], 'scenes-thb' );?>
</a>
</div>
<div class="scene-infos <?php if(!has_post_thumbnail()) : ?>full<?php endif; ?>">
<h2><a href="<?php echo get_term_link($term->slug,$taxonomyName)?>" title="<?php echo $term->name ?>"><?php echo $term->name ?></a></h2>
<div class="scene-desc">
<p>
<?php
$termDesc = $term->description;
echo truncate($termDesc, 650, "...", true);
?>
</p>
</div>
<a class="scene-details" href="<?php echo get_term_link($term->slug,$taxonomyName)?>">Voir le détail de cette scène</a>
</div>
</div>
<?php } ?>
I'm using a plugin to use image on category / taxonomys.
So what i'm looking for is display only 3 result per page, and get everything else paginate.
Is it possible, and how ?
Thx