display all posts in taxonomy template
-
I have a custom template for a taxonomy page called taxonomy-videocategory and I want to display ALL posts associated with each category and it’s only showing ten. I’ve tried several ways to do this via Google searching but with no luck. Below is my code, any help is appreciated! I was hoping for something simple that you just add to the WordPress loop starting out but that doesn’t seem to be the case? Thank you!
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php //get pods object $pods = pods( 'video', $params ); ?> <?php if ( get_post_meta( get_the_ID(), 'vid_thumbnail', false ) ){ $image_array = get_post_meta( get_the_ID(), 'vid_thumbnail', false ); } if ( $image_array ) { foreach ( $image_array as $image ) { $thumbimg = wp_get_attachment_image( $image['ID'], 'full', 'original' ); } } ?> <?php $teaser= get_post_meta( $post->ID, 'vid_teaser', true ); ?> <div id="video-library"> <article> <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php echo $thumbimg; ?></a> <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"> <?php the_title(); ?></a> </h2> <div class="entry-content" style="margin:15px 0 0;"> <p><?php echo $teaser; ?></p> <a class="watchvideo" href="<?php the_permalink() ?>" rel="bookmark" title="Watch Video » <?php the_title_attribute(); ?>">Watch Video »</a> </div> </article> </div> <?php endwhile; else: echo '<h3>'.__("Sorry! No post found.", 'ns_theme').'</h3>'; endif; ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘display all posts in taxonomy template’ is closed to new replies.