Title: Show posts excluding &quot;post_type&quot;
Last modified: August 20, 2016

---

# Show posts excluding "post_type"

 *  [n8paul](https://wordpress.org/support/users/n8paul/)
 * (@n8paul)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/show-posts-excluding-post_type/)
 * I have a slideshow on one of my category pages and I would like to show the post
   from that same category, but instead being in a slideshow, I want them to be 
   static.
 * Here’s what I got so far
 *     ```
       <?php
       $temp = $wp_query;
       $wp_query= null;
       $wp_query = new WP_Query();
       $wp_query->query(array('category__and' => array(5), 'posts_per_page' => 2, 'paged' => $paged));
       ?>
       ```
   
 * [I know you can show a post by it’s “post_type”](http://codex.wordpress.org/Function_Reference/WP_Query#Post_.26_Page_Parameters)
   but I didn’t find anywhere that says how to exclude them.

Viewing 1 replies (of 1 total)

 *  Thread Starter [n8paul](https://wordpress.org/support/users/n8paul/)
 * (@n8paul)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/show-posts-excluding-post_type/#post-2079965)
 * Anyone have any ideas?

Viewing 1 replies (of 1 total)

The topic ‘Show posts excluding "post_type"’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [n8paul](https://wordpress.org/support/users/n8paul/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/show-posts-excluding-post_type/#post-2079965)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
