Title: Multiple Custom Post Types in function file
Last modified: August 19, 2016

---

# Multiple Custom Post Types in function file

 *  [John](https://wordpress.org/support/users/pattison30/)
 * (@pattison30)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/multiple-custom-post-types-in-function-file/)
 * If anyone is tired of searching for a functional Custom Post Type setup, this
   seems to working good for me. Uses 5 CPTs with the admin and custom columns in
   place. You’ll need to find your own way through my labeling. and to all the critics…
   I have no doubt there’s probably a much more elegant way of getting it compressing
   it into a few less lines. I’m no php guru by any means. More than open to suggestions.
   But if someone needs to get the concept moving, this may work. Used the function.
   php from twentyten wp3.01.
 * [Large code excerpt removed by moderator. Per forum rules, please use [the pastebin](http://wordpress.pastebin.com/)
   for all large code excerpts. It works better anyway.]

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

 *  [Justin Sternberg](https://wordpress.org/support/users/jtsternberg/)
 * (@jtsternberg)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/multiple-custom-post-types-in-function-file/#post-1656300)
 * Can you place in a pastebin so i can see it?
 *  Thread Starter [John](https://wordpress.org/support/users/pattison30/)
 * (@pattison30)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/multiple-custom-post-types-in-function-file/#post-1656393)
 * Check out the code below. You’ll have to change the post type labels to fit your
   application. I’ll clean it out with (easier to discern) dummy labels in the near
   future. Drop it in your functions and you’ll see the changes in the admin. I’ve
   put together a better system since I (tried to post this months ago. If your 
   interested, let me know.
 * [pastebin link](http://pastebin.com/STMvAidE)

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

The topic ‘Multiple Custom Post Types in function file’ is closed to new replies.

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [multiple](https://wordpress.org/support/topic-tag/multiple/)
 * [post_type](https://wordpress.org/support/topic-tag/post_type/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [John](https://wordpress.org/support/users/pattison30/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/multiple-custom-post-types-in-function-file/#post-1656393)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
