Custom Fields
Re-Envisioned
Support MB Revision Revisions and Pods-created custom fields

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #16694
    Anh Tran
    Keymaster

    Hi Joanne,

    For example, if you created a field like this in Pods:

    View post on imgur.com

    Then all you need to do is convert it to a Meta Box field with something like this:

    add_filter( 'rwmb_meta_boxes', function( $meta_boxes ) {
        $meta_boxes[] = [
            'title' => 'A Custom Meta Box',
            'fields' => [
                [
                    'id' => 'a_custom_text', // THIS: matches field's Name in Pods
                    'name' => 'A Custom Text',
                    'type' => 'text',
                ],
            ],
        ];
    } );
    #16707

    Thank you for this tip!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
grid gear info copy caret-up caret-down trash