Need help showing multiple posts from taxonomy.
-
I’m having trouble displaying multiple posts connected to my taxonomy. I tried adding:
'posts_per_page' => '-1',
to the array, but it didn’t work. Please advise. Thank you!<div class="container-fluid section-with-search section-dark"> <div class="row mm-grid"> <?php $the_query = new WP_Query( array( 'post_type' => array('video-index'), 'tax_query' => array( array( 'taxonomy' => $term->taxonomy, 'field' => 'slug', 'terms' => $term->slug, ), ), ) ); ?> <ul class="post-list"> <li> <a class="post-title" href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a> <?php if ( has_post_thumbnail() ) : ?> <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"> <?php the_post_thumbnail(); ?> </a> <?php endif; ?> </li> </ul> </div> </div>
- The topic ‘Need help showing multiple posts from taxonomy.’ is closed to new replies.