Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 3,616 through 3,630 (of 3,708 total)
  • Author
    Posts
  • in reply to: STD in metabox RADIO #1085
    Anh TranAnh Tran
    Keymaster

    Hi catarinacarraro,

    I've just tested with your code and I see the std value works, the radio with value "Em" is checked by default:

    in reply to: Existing Values Before Group was Created #1073
    Anh TranAnh Tran
    Keymaster

    I'm really sorry that you have spent much of time searching for the solution. I was on a holiday last week and couldn't answer you sooner. Hope you be generous and still love the plugin.

    in reply to: Existing Values Before Group was Created #1071
    Anh TranAnh Tran
    Keymaster

    Hi, in order to convert data from 1 format to another format, you need to understand how data is saved in the database. Here is the documentation for this. For group, data is saved as an array, each element of which is the value of sub-fields.

    In this case, if you are using simple text field, your data is just multi rows in the database, so getting values will not be a big problem. But I'm not clear how you want to put them in a group? Will the text field is a sub-field of the new group? If so, you can use the following code:

    <?php
    $text_id = 'TEXT_FIELD_ID';
    $group_id = 'GROUP_FIELD_ID';
    
    $posts = get_posts( array(
    	'posts_per_page' => -1,
    ) );
    foreach ( $posts as $post )
    {
    	$text = rwmb_meta( $text_id, 'type=text', $post->ID );
    
    	$meta_key = "{$group_id}[{$text_id}]";
    	update_post_meta( $post->ID, $meta_key, $text );
    
    	// delete_post_meta( $post->ID, $text_id ); // Remove old data, use with care
    }
    in reply to: Bug: MetaBox Group #1057
    Anh TranAnh Tran
    Keymaster

    I think I understand now, but it's still better to have screenshots ๐Ÿ˜€

    in reply to: Metabox List all Pages #1053
    Anh TranAnh Tran
    Keymaster

    Hi, you can use post field with 'post_type' => 'page'.

    in reply to: Bug: MetaBox Group #1052
    Anh TranAnh Tran
    Keymaster

    Hi Flickweert,

    I'm not very clear about the bug. Do you mean that when adding max_clone, it still allows you to add infinite number of clones? And when you remove a clone, the "Add more" button disappear?

    in reply to: Image in group #1042
    Anh TranAnh Tran
    Keymaster

    Hi Flikweert,

    I understand your concern, but there's no way to handle image upload in the group for now.

    But you can use another way to achieve that by using file_input field. It works similar to all image fields (can Browse or Upload images), but doesn't have preview. It's not 100% perfect for your needs, but it works for now.

    in reply to: If is parent? #1016
    Anh TranAnh Tran
    Keymaster

    FYI, the latest version of Meta Box Show Hide now supports check for is_child. Please try it out!

    in reply to: Disable rwmb_meta() on Search Results #1011
    Anh TranAnh Tran
    Keymaster

    Hi, there's a way to change the returned value of rwmb_meta which can be useful for your case.

    The filter is rwmb_meta also and we can do like this:

    add_filter( 'rwmb_meta', 'prefix_meta', 10, 4 );
    function prefix_meta( $meta, $key, $args, $post_id )
    {
        if ( ! is_search() )
            return $meta;
    
        // If this is search page, do whatever you want with the returned value $meta
        $meta = '';
        return $meta;
    }
    in reply to: Missing: MB Conditional Logic Plugin #984
    Anh TranAnh Tran
    Keymaster

    FYI, the Conditional Logic has just been released. Please redownload the Core Extensions Bundle to get it.

    If you have any problem using the new extension, please let us know in the support forum.

    Thanks and enjoy!

    in reply to: Meta Box Show Hide version 0.2 : Input values #972
    Anh TranAnh Tran
    Keymaster

    Thanks for your replies. Let me check it.

    in reply to: Missing: MB Conditional Logic Plugin #970
    Anh TranAnh Tran
    Keymaster

    Hi daveheslop,

    This plugin is under development and will be available soon. When it's available, it will be included in the Core Extensions Bundle and you can download it from your account page.

    in reply to: plupload_image as URL instead of ID #963
    Anh TranAnh Tran
    Keymaster

    Yes, of course. You can use the following code to output the full URL of an image:

    $image = rwmb_meta( 'field_id', 'type=image' );
    echo $image['full_url'];

    For more information, please read this documentation.

    in reply to: Sortable Clone Fields #958
    Anh TranAnh Tran
    Keymaster

    Hi again,

    FYI, this feature has just been added to the latest version 4.5.4. Please update the plugin to use it.

    Thanks for your idea and enjoy the plugin!

    in reply to: Number of clones #957
    Anh TranAnh Tran
    Keymaster

    FYI, this feature is now available in version 4.5.4. Please update the plugin to use it.

    Enjoy!

Viewing 15 posts - 3,616 through 3,630 (of 3,708 total)