Support » Fixing WordPress » post per page

  • Resolved scottiescotsman

    (@scottiescotsman)


    I have successfully managed to list my taxonomy ‘actor’ desc due to count but I cannot limit it to a maximum of 10 actors, as post per page doesn’t work.

    <?php
    
    							$term_args = array(
    						
    							'hide_empty'		=> false,
    							'orderby' 			=> 'count',
    							'order'				=> 'DESC'
    
    							);
    
    							$terms = get_terms( 'actor', $term_args ); ?>
    
    							<?php foreach ( $terms as $term ) { ?>
    
    							<div class="col-md-12 align_Center">
    													
    								<?php echo $term->name; ?> <span style="color: white"><?php echo $term->count; ?>
    							
    							</div>
    							
    						<?php } ?>

    how will I accomplish this?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘post per page’ is closed to new replies.