Title: array limit or hide excerpt
Last modified: August 21, 2016

---

# array limit or hide excerpt

 *  [yamizer](https://wordpress.org/support/users/yamizer/)
 * (@yamizer)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/array-limit-or-hide-excerpt/)
 * hello, i have this code that shows posts, and i want to limit or hide the posts
   exceprts is there any array should i use and add to this code?
 *     ```
       <?php
   
                           $args = array(
                               'post_status' => 'publish',
                               'posts_per_page' => $post_limit,
                               'paged' => $paged2,
                               'orderby' => 'date',
                               'meta_key' => 'things_checkbox',
                               'meta_value' => 'on',
                               'order' => 'DESC'
                           );
                           $query = new WP_Query($args);
                           while ($query->have_posts()) : $query->the_post();
                               featured_post();
                           endwhile;
                           $pag_args2 = array(
                               'format' => '?cat=' . $current_cat . '&paged2=%#%',
                               'current' => $paged2,
       						'prev_text'    => __('«'),
       						'next_text'    => __('»'),
       						'type'         => 'list',
                               'total' => $query->max_num_pages,
                               'add_args' => array('paged1' => $paged1)
                           );
       					echo paginate_links($pag_args2);
                           wp_reset_query();
                           wp_reset_postdata();
       					?>
       ```
   
 * please help

The topic ‘array limit or hide excerpt’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [yamizer](https://wordpress.org/support/users/yamizer/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/array-limit-or-hide-excerpt/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
