Custom Fields
Re-Envisioned
Support MB Term Meta MB Meta Term hide my posts meta fields

This topic contains 6 replies, has 2 voices, and was last updated by  lf2s 1 year ago.

  • Creator
    Topic
  • #10798

    lf2s
    Participant

    Hello,

    I created meta term fields for a custom post and after that, fields in a custom taxonomy of the custom post with MB Term Meta plugin. Everything was fine with my custom post fields until I activate MB Meta Term. Since then, values disapered on post edit page… Labels are still here but values gone. I check database, they still there. If I update my post, they been erased.

    I used Meta Box Group plugin too.

    Could you help me ?

    Regards

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • #10803

    lf2s
    Participant

    Try to test on another new WordPress instal, have the same issue…

    Here is my PHP code ( Custom post register and fields ) :

    https://ghostbin.com/paste/ykfpy

    #10811

    Anh Tran
    Keymaster

    Hello,

    I’ve created a test using your code and here is the video: http://recordit.co/nGs41cchuS. It seems to work for me. Am I missing anything?

    #10825

    lf2s
    Participant

    Hello,

    Weird… I have an old Meta Box Group version (1.1.5). Could It be that? I would not like to bye a new one to update if it not that…
    I have the last version of Meta Term plugin and last version of WordPress.

    Otherwise I could not figure out where is the problem :/

    Thank you

    #10828

    lf2s
    Participant

    That’s it! There is a function in Meta Term Files wish testing the version of Meta Group. If an old version, the storage is block! Why doing that??? I ve been blocked for hours with that…

    <?php
    // Backward compatible with Meta Box Group extension < 1.2.7 when Meta Box 1.12 switch to use storage.
            $old_group = false;
            if ( ! function_exists( 'is_plugin_active' ) ) {
                include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
            }
            if ( is_plugin_active( 'meta-box-group/meta-box-group.php' ) ) {
                $group = get_plugin_data( WP_PLUGIN_DIR . '/meta-box-group/meta-box-group.php' );
    
            if ( version_compare( $group['Version'], '1.2.7' ) < 0 ) {
                $old_group = true;
            }
        } ?>
    #10832

    Anh Tran
    Keymaster

    Hi,

    We actually don’t block any feature. The code you see it the code for backward compatibility. Back in the history, a year ago (Meta Box 4.12), we created an abstraction layer for storage. This layer allows us to interact with many storage in WP easier, such as term meta, user meta, settings and custom table. Without it, we had to created many filters just for saving and getting the values.

    Since then, we have updated all the extensions to use this feature, including Group and Term Meta. I’d suggest you update the group extension to the latest version 1.2.16. What you’re having is 1.1.5, which behind 18 versions. And Meta Box core plugin is now 4.15, 3 minor versions have been released.

    Update: I found a quick and dirty fix for MB Term Meta that makes it works with old version of Group. Please update to version 1.2.3.

    #10941

    lf2s
    Participant

    Hello,

    Thank you Ahn! Unfortunatly (for me) I have already bought an apdate for Meta Group. And it works. But thanks for your update on Meta term!

    Regards

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

The topic ‘MB Meta Term hide my posts meta fields’ is closed to new replies.