Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 3,046 through 3,060 (of 3,958 total)
  • Author
    Posts
  • in reply to: Upgrade to Developer Bundle #4485
    Anh TranAnh Tran
    Keymaster

    I answered Dave via email. If anyone is interested in this, the answer is yes. Please just purchase the Developer Bundle and I will refund the part for Core Bundle.

    Anh TranAnh Tran
    Keymaster

    Hi, can you please post the code you're using to register meta box? The old problem was resolved and I test with the original code in this thread again and it works.

    in reply to: Display image by id using image_advanced? #4475
    Anh TranAnh Tran
    Keymaster

    You can use this code:

    $groups = rwmb_meta( 'group_id' );
    $first_group = !empty( $groups ) && is_array( $groups ) ? reset( $groups ) : array();
    $images = !empty( $first_group['album_images'] ) && is_array( $first_group['album_images'] ) ? $first_group['album_images'] : array();
    $first_image = !empty( $images ) && is_array( images ) ? reset( $images ) : 0;
    
    echo wp_get_attachment_image( $first_image, 'thumbnail' );

    PS: Are you using the Group extension? I see you didn't purchase it.

    in reply to: Sortable custom admin columns? #4474
    Anh TranAnh Tran
    Keymaster

    I think the filter should be:

    $query->set( 'orderby', 'meta_value' );
    $query->set( 'meta_key', 'mm_fornavn' );
    $query->set( 'order', 'ASC' );

    For more info about the params, please read the Codex about WP_Query class.

    in reply to: Documentation PDF? #4473
    Anh TranAnh Tran
    Keymaster

    Unfortunately, we have only the online version of the documentation. We regularly update the documentation (with new parameters/tutorials) and the online documentation helps us to provide the content to users better.

    in reply to: Sortable custom admin columns? #4455
    Anh TranAnh Tran
    Keymaster

    Hi,

    For custom column that you created, you must specify the way to query the data to sort them. You might want to add a hook to pre_get_posts in the class constructor and then filter the query, like this:

    class Prefix_Custom_Admin_Columns extends MB_Admin_Columns_Post {
        function __construct() {
            parent::__construct();
            add_action( 'pre_get_posts', array( $this, 'filter' ) );
        }
        // Other methods
        function filter( $query ) {
            // Sample code to sort the data
            $query->set( 'orderby', 'post_date' );
            $query->set( 'order', 'ASC' );
        }
    }
    in reply to: Query posts by subfield #4454
    Anh TranAnh Tran
    Keymaster

    There's no direct way to query post by sub-fields of a group. Because the data is stored as a serialized array in the post meta. You might want to refer to some techniques to solve this:

    https://support.metabox.io/topic/reverse-query-on-clonable-post-metabox/
    https://support.metabox.io/topic/new-field-class-hooking-to-rwmb_after_save_post/
    https://support.metabox.io/topic/use-repeatable-meta-box-field-for-query-orderby/

    in reply to: Refund #4453
    Anh TranAnh Tran
    Keymaster

    Ok, no problem. It's done.

    Anh TranAnh Tran
    Keymaster

    Dear Venkat,

    I see you use full size for your field. If you set 12 columns, consider to remove column property of field it will show exactly on the new row.

    in reply to: Behavior of Datetime field #4440
    Anh TranAnh Tran
    Keymaster

    Hi, thanks for reporting the bug. Let's track this issue on Github for better communication with other users as well. It belongs to the core plugin.

    Anh TranAnh Tran
    Keymaster

    It's weird, sorry for not clear on the previous message. I use visibility:hidden for column. For other fields, I use .show() and .hide() jQuery method. Can you please post your code here so I can check it?

    in reply to: Set Selected by default in Radio box #4431
    Anh TranAnh Tran
    Keymaster

    Just add 'std' => 'no' to the field ๐Ÿ˜‰

    in reply to: Color Field: Alpha channel possible? #4430
    Anh TranAnh Tran
    Keymaster

    We're using the WordPress built-in color picker (Iris) and sadly it doesn't have alpha channel ๐Ÿ™

    in reply to: Single Image field? #4429
    Anh TranAnh Tran
    Keymaster

    Currently you can do that with 'max_file_upload' => 1 for image_advanced field ๐Ÿ™‚

    Anh TranAnh Tran
    Keymaster

    Dear Venkat,

    Field should visibility: hidden because we have to prevent jumping other fields, for instance, you have 3 fields:

    
    Address
    Zipcode
    Country
    

    or with column:

    
    Address   Zipcode   Country
    

    So if Zipcode is hidden, Country with jump to Zipcode place immediately, it's bad for UX.

    Best regards,

    Tan

Viewing 15 posts - 3,046 through 3,060 (of 3,958 total)