Title: multiple custom posts array
Last modified: August 20, 2016

---

# multiple custom posts array

 *  [flashvenom](https://wordpress.org/support/users/flashvenom/)
 * (@flashvenom)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/multiple-custom-posts-array/)
 * Is there a way i can instead of declaring 3 different custom post types all with
   the same attributes. bunch them into an array
 * so instead this
 *     ```
       register_post_type('portfolio', array(
       'label' => 'Films & Media',
       'public' => true,
       'show_ui' => true,
       'capability_type' => 'post',
       'hierarchical' => true,
       'rewrite' => array('slug' => 'portfolio'),
       'query_var' => true,
       'supports' => array( 'title', 'editor', 'thumbnail', 'revisions', 'comments'),
       ));
   
       register_post_type('blog', array(
       'label' => 'Blog',
       'public' => true,
       'show_ui' => true,
       'capability_type' => 'post',
       'hierarchical' => true,
       'rewrite' => array('slug' => 'blog'),
       'query_var' => true,
       'supports' => array( 'title', 'editor', 'thumbnail', 'revisions', 'comments',),
       ));
   
       register_post_type('tile_one', array(
       'label' => 'Tile One',
       'public' => true,
       'show_ui' => true,
       'capability_type' => 'post',
       'hierarchical' => true,
       'rewrite' => array('slug' => 'tile_one'),
       'query_var' => true,
       'supports' => array( 'title', 'editor', 'thumbnail', 'revisions'),
       ));
       ```
   
 * I want to do something like this
 *     ```
       register_post_type('portfolio', 'blog', 'news', 'etc' array(
       'label' => 'portfolio', 'blog', 'news', 'etc'
       'public' => true,
       'show_ui' => true,
       'capability_type' => 'post',
       'hierarchical' => true,
       'rewrite' => array('slug' => 'portfolio', 'blog', 'news', 'etc'),
       'query_var' => true,
       'supports' => array( 'title', 'editor', 'thumbnail', 'revisions', 'comments'),
       ));
       ```
   
 * Any help much appreciated

The topic ‘multiple custom posts array’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [flashvenom](https://wordpress.org/support/users/flashvenom/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/multiple-custom-posts-array/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
