WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In Drupal you have the GUI to create whatever type you want. How about in WP, do I still have to code to create one?

share|improve this question
Drupal is beautiful on the inside, ugly on the outside. WP is the other way around :) – onetrickpony Jul 2 '11 at 20:03
up vote 8 down vote accepted

Even though there are plugins to register Custom Post Types in WordPress, this is not the way it should be done.

According to core developer Andrew Nacin, Custom Post Types should be implemented (in code) not registered (by clicks).

This makes them more managable and easier to improve and further develop or hack. Also, code versioning is the way it goes.

share|improve this answer
Can you post a link to Nacin's comments? A quick google search didn't turn up anything. – Ian Dunn Jul 3 '11 at 16:06
As far as I can remember it was a tweet that I cannot track down. But we can have Nacin here hopefully. – Banago Jul 4 '11 at 13:10

Not necessarily, you can use the Custom Post Type UI plugin to create one with a GUI. If it doesn't have to be an actual custom post type, you could also use PODS, which achieves a similar result using a custom object type.

share|improve this answer
PODS doesn't use native custom post types, but has it's own "content types". – scribu Jul 2 '11 at 20:29
Thanks for pointing that out. I'll fix the answer. – Ian Dunn Jul 2 '11 at 21:23
@Ian, Not necessarily what? Custom Post Type UI uses database to register CPT which is the same way Drupal does, which is wrong. CPT UI has lately a beta feature that gives you the code to paste instead though. (According to plugin page), which is great – Banago Jul 3 '11 at 15:40
He asked if he had to write code to create a custom post type; that's what the "not necessarily" was in response to. You don't necessarily have to write code, you can also use a plugin to do it for you. – Ian Dunn Jul 3 '11 at 16:05
Oops, sorry. Something told me you were talking to me :) – Banago Jul 3 '11 at 16:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.