Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 3,496 through 3,510 (of 3,958 total)
  • Author
    Posts
  • in reply to: Tabs not shown #2654
    Anh TranAnh Tran
    Keymaster

    Are you using the latest version of the extension? This feature has just been added in version 1.1.0.

    in reply to: rwmb_the_value() #2653
    Anh TranAnh Tran
    Keymaster

    Maybe you're right. I need to check that again. Can you tell me which field type are you using?

    in reply to: Select box option value disappears after import database #2646
    Anh TranAnh Tran
    Keymaster

    Ok, I'll test with non unicode characters and will have a patch soon. Thanks for your awesome contribute, this helps us really much.

    Tan

    in reply to: rwmb_the_value() #2641
    Anh TranAnh Tran
    Keymaster

    Hi,

    Thanks for asking this. There are 2 internal helper functions rwmb_get_value() and rwmb_the_value() which are used in rwmb_meta() function. They're not 100% stable since v4.8.0 so I haven't put them in the docs yet.

    Briefly, rwmb_get_value returns the raw value stored in the post meta, while rwmb_the_value returns (or outputs) the *meaningful* value in the frontend. Meaningful = option label for select box, post title for post field, a colorful dot for color field, etc.

    Both functions accept the same parameters as rwmb_meta. Parameters also share the same meaning.

    rwmb_get_value( $field_id, $args = array(), $post_id = null )
    rwmb_the_value( $field_id, $args = array(), $post_id = null, $echo = true )

    They also use $post_id if you want to get meta value from a specific post.

    In your case if the result goes unexpected, please try setting up the $post_id. Anyway, there was also a topic reporting the same problem happened because of wrong post ID. But I couldn't find out why

    in reply to: Meta Box extension updates and MainWP #2640
    Anh TranAnh Tran
    Keymaster

    Are you using the latest version of the Updater? I think I fixed that.

    Anh TranAnh Tran
    Keymaster

    Hi,

    I think you're doing correctly. However, I will think more about a better way to suppress the error. For now, all fields' classes are loaded by autoload and it makes us impossible to use class_exists.

    in reply to: Select box option value disappears after import database #2633
    Anh TranAnh Tran
    Keymaster

    Dear Yumiko,

    Thanks for your detailed video, I already viewed it. I have checked again, and see that Export dropdown on the top doesn't works, you'll have to use Export dropdown on the bottom. In the previous time I check with your website, I use export dropdown in the bottom. lol.

    We'll fix this bug and release a patch in the next version. Currently, just use Export in the bottom.

    Cheers!

    Tan

    Anh TranAnh Tran
    Keymaster

    Unfortunately, it's not supported. The plugin is made for working with custom fields and should handle custom columns for custom field only. For the default WP columns, I made it support replacing them only.

    However, you can do that with a simple code like this:

    add_filter('manage_edit-POST_TYPE_columns', 'prefix_custom_columns');
    function prefix_custom_columns( $columns ) {
        $columns['title'] = __( 'Lecture Name', 'textdomain' );
        return $columns;
    }

    For more details, you can check this tutorial.

    in reply to: I would like to download MB admin columns #2630
    Anh TranAnh Tran
    Keymaster

    Hi buzzmn,

    The reason you don't see the new extensions in the download bundle is at the time your purchased the bundle with a lower price, the extensions have not been published. When new extensions are added to the bundle, the price increase. So you purchased for the current extensions at that moment. The new bundle requires higher price. Please understand that the bundle doesn't guarantee all current and future extensions. It has current extensions with a corresponding price.

    in reply to: Select box option value disappears after import database #2624
    Anh TranAnh Tran
    Keymaster

    Dear Yumiko,

    It's me again, I've tried to login your website but got 404 error message.

    Actually, I've exported your last meta box and imported successfully in your website before. I'll try one more time when your website is up again.

    Best regards,

    Tan

    in reply to: Meta Box extension updates and MainWP #2619
    Anh TranAnh Tran
    Keymaster

    Did you install the updater extension on client websites? The updater extension enables the updates of all extensions (including itself) as normal plugins.

    in reply to: Include tab ext in theme #2612
    Anh TranAnh Tran
    Keymaster

    I highly recommend to include the main plugin and extensions using the TGM Activation Class. The TGM Activation Class is being proposed to be included in WordPress core. So, we have good reasons to use it.

    But, if you want to include the tab extension in your theme anyway, then you have to do 2 things:
    - Include the plugin main file
    - Enqueue correct CSS/JS files

    Your code above only did the 1st thing. To enqueue CSS/JS file, you can do this:

    add_action( 'rwmb_enqueue_scripts', 'prefix_meta_box_tabs_enqueue' );
    function prefix_meta_box_tabs_enqueue()
    {
        wp_enqueue_style( 'tabs-ext', get_template_directory_uri() . '/inc/meta-box-tabs/tabs.css' );
        wp_enqueue_script( 'tabs-ext', get_template_directory_uri() . '/inc/meta-box-tabs/tabs.js', array( 'jquery' ), '', true );
    }

    Please double check the URL to files tabs.css and tabs.js.

    in reply to: How to save / restore metabox value as revision #2611
    Anh TranAnh Tran
    Keymaster

    Thank you Yumikon, I will keep a note on this.

    in reply to: Select box option value disappears after import database #2606
    Anh TranAnh Tran
    Keymaster

    Actually, I have tried with your production website and it works. I cannot replicate your bug on my PC because different environment. Can you please send me a screenshot or better video about how can you meet the bug?

    in reply to: How to save / restore metabox value as revision #2604
    Anh TranAnh Tran
    Keymaster

    Hi Yumikom,

    Unfortunately, WordPress doesn't support saving custom fields in the revision by default (even custom fields in the default Custom Fields meta box). This requires some work on that and we haven't done it yet.

Viewing 15 posts - 3,496 through 3,510 (of 3,958 total)