• I have this query on my site, but it’s only returning 3 items instead of the 10 items that exist.

    Anyone have any ideas?

    <?php
    		$args=array(
    		  'portfolio_type' => 'carousel',
    		  'posts_per_page' => -1,
    		  'post_type' => 'portfolio-items'
    		);
    		$my_query = null;
    		$my_query = new WP_Query($args);
    		if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); ?>
    		<div class="item"><a title="<?php the_title()?>" href="<?php the_permalink(); ?>"><?php the_title()?></a>
    			</div>
    <?php endwhile; } wp_reset_query(); ?>

The topic ‘Custom Taxonomy Query’ is closed to new replies.