Title: Custom Post Type with multiple text inputs
Last modified: August 21, 2016

---

# Custom Post Type with multiple text inputs

 *  [equorne](https://wordpress.org/support/users/equorne/)
 * (@equorne)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/custom-post-type-with-multiple-text-inputs/)
 * Hi!
    I already asked this in another forum and googeled it, but I didn’t find
   any answer: I need a cutsom post type. That’s easy. But in the “Edit Post” section,
   I want 3 or more article input fields instead of only one. The articles should
   be divided into <div>-tags. All the div-tags should have one css class in common(
   for example class=”article”). The other classes should able to be assigned specifically,
   that means i’d like to have a little box beneath each of the article input fields,
   in which I can select different classes for each of the fields. I need an elegant
   solution, as I may use it for customers. I really need your help as it is very
   important to me. Thanks in advance, equorne

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

 *  [NoahB](https://wordpress.org/support/users/noahb/)
 * (@noahb)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/custom-post-type-with-multiple-text-inputs/#post-3848320)
 * Are you taking about adding fields on the page that you publish posts, in the
   admin panel?
 *  Thread Starter [equorne](https://wordpress.org/support/users/equorne/)
 * (@equorne)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-with-multiple-text-inputs/#post-3848529)
 * [http://graphpaperpress.com/wp-content/uploads/2013/01/edit_post-690×411.png](http://graphpaperpress.com/wp-content/uploads/2013/01/edit_post-690×411.png)
 * I am talking about this one. I want 3 article input fields instead of only one
   and the other stuff described above.
 *  [NoahB](https://wordpress.org/support/users/noahb/)
 * (@noahb)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-with-multiple-text-inputs/#post-3848612)
 * Hmm… OK. I would help code it for you, but it seems that someone already solved
   it: [http://wordpress.org/support/topic/add-an-extra-text-input-field-on-admin-post-page?replies=24/](http://wordpress.org/support/topic/add-an-extra-text-input-field-on-admin-post-page?replies=24/).
   Or if you don’t want to edit a theme, I bet there is a file in the core WordPress
   directory that controls that type of stuff. Hope that helps!
 *  Thread Starter [equorne](https://wordpress.org/support/users/equorne/)
 * (@equorne)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-with-multiple-text-inputs/#post-3848658)
 * Thanks, I think that’ll help 🙂 And how can I do the thing with the custom classes?
   By adding extra post meta data?
 *  Thread Starter [equorne](https://wordpress.org/support/users/equorne/)
 * (@equorne)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-with-multiple-text-inputs/#post-3848662)
 * Oh, and I think I’m going to put it into my themes, as I would always have to
   modify the core after wp updates 😉
 *  Thread Starter [equorne](https://wordpress.org/support/users/equorne/)
 * (@equorne)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-with-multiple-text-inputs/#post-3848699)
 * I tried it out. What I figured out is that I still need a heading input field
   for all of the metaboxes. And having that WYSIWYG-editor from the big article
   input box also for the small boxes would be nice… And of course the stuff with
   the classes.
 *  [NoahB](https://wordpress.org/support/users/noahb/)
 * (@noahb)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-with-multiple-text-inputs/#post-3848708)
 * What do you mean by “heading input field for all of the metaboxes”? Also, as 
   far as a WYSIWYG editor, you may want to take a look at this prevoius forum thread:
   [http://wordpress.org/support/topic/tinymce-for-blog-post-title?replies=3](http://wordpress.org/support/topic/tinymce-for-blog-post-title?replies=3).
   As for custom classes, by this is think you mean making your own functions, such
   as add_new_input(). This is easy to do via the _functions.php_ file, but it’s
   up to you to make the custom code. Again remember, adding more inputs for the
   post page is usually a native WordPress feature, not part of a theme.
 *  Thread Starter [equorne](https://wordpress.org/support/users/equorne/)
 * (@equorne)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-with-multiple-text-inputs/#post-3848709)
 * Thanks 😉
    As I described, I did all this on a custom post type. I deleted the
   support for the editor, so there’s only the title left. I added a custom input
   box, but I think for further boxes I will try out a modification af Advanced 
   Custom fields

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

The topic ‘Custom Post Type with multiple text inputs’ is closed to new replies.

## Tags

 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)
 * [input fields](https://wordpress.org/support/topic-tag/input-fields/)

 * 8 replies
 * 2 participants
 * Last reply from: [equorne](https://wordpress.org/support/users/equorne/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/custom-post-type-with-multiple-text-inputs/#post-3848709)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
