Custom Fields
Re-Envisioned
Support MB Revision Groups revisions don't work

This topic contains 5 replies, has 3 voices, and was last updated by  Cereal Concept 10 months, 3 weeks ago.

  • Creator
    Topic
  • #9409

    Cereal Concept
    Participant

    Hello !

    I’m using the following plugins :

    Meta Box 4.14.5
    MB Revisions 1.0.1
    Meta Box Group 1.2.13

    revision is set to true for the metabox but the group field but nothing is shown in the revisions page.
    It works with non-group fields.

    Is this a known bug or I’m I doing it wrong ?
    Thanks in advance,

    Johann

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #9413

    Anh Tran
    Keymaster

    Thanks for letting us know. Let me check and fix it.

    #9436

    Truong Giang
    Participant

    Can you give me the code you use to register meta box?
    Thanks.

    #9811

    Cereal Concept
    Participant

    Hi !
    Thanks for your replies !
    Sorry for the delay I missed the notification

    Here is the code used to register the meta box with revision enabled :

    $meta_boxes[] = array(
      'revision' => true,
      'id'         => 'noussuite-blocs',
      'title'      => __( 'Les différents blocs', 'purple' ),
      'post_types' => array( 'page' ),
      'autosave'   => true,
      'fields'     => array(
    
        // Blocs
        array(
          'name'  => esc_html__( 'Blocs', 'langdomain' ),
          'id'    => "{$prefix}group-blocs",
          'type'  => 'group',
          'add_button' => 'Ajouter un bloc',
          'collapsible' => true,
          'group_title' => array( 'field' => 'cc_text-titre' ),
          'clone' => true,
          'sort_clone' => true,
          'fields'   => array(
            // Titre
            array(
              'name'  => esc_html__( 'Titre', 'langdomain' ),
              'id'    => "{$prefix}text-titre",
              'desc'  => esc_html__( 'Le titre du bloc', 'langdomain' ),
              'type'  => 'text',
            ),
    

    #9931

    Truong Giang
    Participant

    Hi there,

    Can you give me the full code? Or at least the code which problem occurs.
    Thanks!

    #10071

    Cereal Concept
    Participant

    Hi !

    This is my full rwmb_meta_boxes filter function :

    https://pastebin.com/Qzn8XGvP

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

You must be logged in to reply to this topic.