• equorne

    (@equorne)


    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

    (@noahb)

    Are you taking about adding fields on the page that you publish posts, in the admin panel?

    Thread Starter equorne

    (@equorne)

    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

    (@noahb)

    Hmm… OK. I would help code it for you, but it seems that someone already solved it: http://ww.wp.xz.cn/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

    (@equorne)

    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

    (@equorne)

    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

    (@equorne)

    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

    (@noahb)

    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://ww.wp.xz.cn/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

    (@equorne)

    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.