• okay, i am needing something similar to a spreadsheet but in custom field form… in other words i need something that will display something like this in the custom fields section of a custom post type i have created:

    material | vendor | price | #
    [text field] | [text field] | [text field] | [text field]
    [text field] | [text field] | [text field] | [text field]

    [add more fields button]

    The add more fields button would work similar to the add custom field button that is there now… it would give them another set of fields to fill in… any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter security_man

    (@security_man)

    i am thinking that i need to duplicate and modify the following functions:

    * post_custom_meta_box in wp-admin/includes/meta-boxes.php
    * meta_form in wp-admin/includes/template.php
    * list_meta in wp-admin/includes/template.php
    * _list_meta_row in wp-admin/includes/template.php

    where i am really getting stuck is how to create the array. i am thinking something like:

    $myarray = array(
        line-items => array{
            $x => array(material=>'',vendor=>'',price=>'',number=>''),
            $x => array(material=>'',vendor=>'',price=>'',number=>''),
            $x => array(material=>'',vendor=>'',price=>'',number=>'')
        ));

    but i have no idea how to modify those functions to get something like this

    Anders

    (@seananders1227)

    Check out jQuery Data Tables, there is a plugin for it to turn the table cells into editable fields.

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

The topic ‘need help with custom fields on a custom post type’ is closed to new replies.