OK, as I understand it, pagination is most probably not going to work?
I would settle also for showing all instead of using pagination…
It seems I have to do something with a wp_query, but I cannot figure out how to set this up to show all posts from a specific term on one taxonomy.
For illustration:
– I have 5 custom taxonomies (type, size, color, to name a few) hanging under Pages.
– The taxonomy page “size” shows a short introduction about sizes and then lists all the terms within that taxonomy.
– When a term is clicked in the above, you’ll get to the taxonomy-term page and after a short introduction I want to list all the Pages that use that same taxonomy term.
I have accomplished all of this already with the exception of the “list all”-part: only the last 10 entries show up, nothing more.
The code I have used is as follows:
<h1 class="page-title"><?php _e('Helmet Size: ', 'nzih'); ?><?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); echo $term->name; ?></h1>
<?php $categorydesc = category_description(); if ( !empty($categorydesc) ) echo apply_filters( 'archive_meta', '<div class="archive-meta">' . $categorydesc . '</div>' ); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="taxo-helmet">
<div class="taxo-title">
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( __('See details of this helmet', 'nzih')); ?>"><?php the_title(); ?></a></h2>
</div> <!-- .taxo-title -->
<div class="taxo-thumb">
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('carousel-thumbnail');?>
</a>
</div> <!-- .taxo-thumb -->
</div><!-- #post-ID .taxo-helmet -->
<?php endwhile; ?>
the result can be seen at https://bit.ly/cgfj0h