include 'post_title' as a field inside register_meta_boxes

Support MB Frontend Submission include 'post_title' as a field inside register_meta_boxesResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #32148
    Nicholas CoxNicholas Cox
    Participant

    Hi

    Is it possible to include the post title inside my custom table when calling 'register_meta_boxes'

    I have created a custom table column and have assigned the field with same id 'post_title' and then removed the 'post_title' from the shortcode.

    e.g. shortcode
    [mb_frontend_form id="product"]

    e.g. of one of my fields inside 'register_meta_boxes'

    
    [
        'type'  => 'text',
        'name'  => esc_html__( 'Title', 'my-translation-table' ),  //todo: look at adding in translation file and referencing it with e.g. 'my-translation-table'
        'id'    => 'post_title', //mysql name
        'desc'  => esc_html__( '', 'my-translation-table' ),
        'class' => 'dc-post-title',
        'required' => true,
    ],
    
    #32157
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Yes, it is possible. Please follow this documentation to know how to override the default post fields https://docs.metabox.io/extensions/mb-frontend-submission/#reorder-post-fields

    #32292
    Nicholas CoxNicholas Cox
    Participant

    ok thanks for this, works great

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