• 00lessio

    (@00lessio)


    I created a custom post type with related custom meta boxes using CMB2, but when I go to create the table I can select the custom post type but not the custom fields in the columns.
    I sent via meta , but after I insert the key /ID it is deleted and returns to “new meta key”, how can I display my custom values ??in the table?

    an example of code that I use to create the post fields

    $cmb_apertura->add_field( array(
    ? ? ? ? 'id' => $prefix . 'descrizione_breve',
    ? ? ? ? 'name' ? ? ? ?=> __( 'Descrizione breve *', 'design' ),
    ? ? ? ? 'desc' => __( 'Descrizione sintetica ' , 'design' ),
    ? ? ? ? 'type' => 'textarea',
    ? ? ? ? 'attributes' ? ?=> array(
    ? ? ? ? ? ? 'maxlength' ?=> '255',
    ? ? ? ? ? ? 'required' ? ?=> 'required'
    ? ? ? ? ),
    ? ? ) );

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support mediawebster

    (@mediawebster)

    Hello

    Did you read this – https://posts-table.com/document/meta/ ?

    https://share.pluginus.net/image/i20240826114234.png – you can insert any key even if this field does not exist

    Thread Starter 00lessio

    (@00lessio)

    hi, I’m continuing to try, I also entered the prefix, but it keeps deleting and putting the default new meta key, I don’t understand where I’m wrong.
    Then when I go to load it in the drop-down menu in the columns tab it doesn’t come up to select, what should I do? and if I go back to the meta tab the metakey is no longer there

    • This reply was modified 2 months, 4 weeks ago by 00lessio.
    Plugin Support mediawebster

    (@mediawebster)

    Hello

    When you have entered the new key, please, press [Enter]

    Can you make a video of the error?

    Thread Starter 00lessio

    (@00lessio)

    thanks, I solved it, pressing enter.
    I didn’t understand, I saw the words saved, but then it probably only saved an entry field.
    I would never have had to click enter for today’s field, it’s not very intuitive, it would be better to have a single save button that saves the entire line.
    THANK YOU

    Plugin Support mediawebster

    (@mediawebster)

    Hello

    ok! Welcome;)

    I will pass your suggestion on to the developers.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.