Including post fields inside MB Tabs

Support MB Frontend Submission Including post fields inside MB TabsResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15427
    pzapza
    Participant

    I searched around the forum, but could not find any such request:

    • Is it possible to include the post fields (Title, Post content, Thumbnail) inside a tab?

    Or do I need to 1) hide post fields on the form 2) make dummy fields and 3) update the post fields (from the dummy fields) upon submission?

    Just asking in case this has been covered somewhere. Thank you.

    #15428
    pzapza
    Participant

    I tried adding the "tab" attribute to the post fields, but that doesn't seem to work:

    add_filter( 'rwmb_frontend_post_title', function( $field ) {
        $field['type'] = 'text';
        $field['name'] = 'Name';
        $field['size'] = 60;
        $field['tab'] = 'basic';
        return $field;
    } );

    I'll have to resort to setting up dummy post meta to update post fields. But please let me know if there's a better way. Thanks!

    #15450
    Anh TranAnh Tran
    Keymaster

    Hi pza,

    Unfortunately, the post fields are displayed outside of the meta box wrapper div. It's not possible to move the fields into the tab unless using JavaScript. But that's kind of a hack and various depends on your meta box config.

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