Title: Several post_type in one array
Last modified: January 23, 2017

---

# Several post_type in one array

 *  Resolved [BaMac](https://wordpress.org/support/users/bamac/)
 * (@bamac)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/several-post_type-in-one-array/)
 * I am using CPT UI to create different lists. With this code I decide which CPT
   list shows up:
 * <?php $args = array(
    ‘posts_per_page’ => 200, ‘orderby’ => ‘title’, ‘order’ 
   => ‘ASC’, ‘post_type’ => ‘gewerbemarkt’, ‘post_status’ => ‘publish’, ‘$post’ 
   => ‘postname’, ‘suppress_filters’ => false ); ?>
 * My question is if I can use several post_types in this array: For example:
    ‘
   post_type’ => ‘gewerbemarkt,mitglieder’, which doesn´t work. Is this generally
   possible?
 * Many regards
 * Jo

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [9 years, 4 months ago](https://wordpress.org/support/topic/several-post_type-in-one-array/#post-8688427)
 * pass an array instead of a comma-separated string:
 *     ```
       'post_type' => array( 'gewerbemarkt', 'mitglieder' ),
       ```
   
 * I don’t believe WP_Query is set to `explode()` and parse comma-separated variants
   for that field.
 *  Thread Starter [BaMac](https://wordpress.org/support/users/bamac/)
 * (@bamac)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/several-post_type-in-one-array/#post-8688563)
 * Thanks a lot! That works fine.
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [9 years, 4 months ago](https://wordpress.org/support/topic/several-post_type-in-one-array/#post-8688645)
 * Excellent.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Several post_type in one array’ is closed to new replies.

 * ![](https://ps.w.org/custom-post-type-ui/assets/icon-256x256.png?rev=2744389)
 * [Custom Post Type UI](https://wordpress.org/plugins/custom-post-type-ui/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-post-type-ui/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-type-ui/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-type-ui/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-type-ui/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-type-ui/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/several-post_type-in-one-array/#post-8688645)
 * Status: resolved