Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 3,331 through 3,345 (of 3,702 total)
  • Author
    Posts
  • in reply to: Add text domain in MB Builder #2726
    Anh TranAnh Tran
    Keymaster

    Hi, I think it's not possible. Because the purpose of the builder is letting users create meta boxes and fields for themselves. They will not need to translate to another language.

    in reply to: MB Group not display in post type #2711
    Anh TranAnh Tran
    Keymaster

    Just saw your email. Do you want to continue discussing here or via email? If nothing private, I think we should talk here.

    in reply to: MB Group not display in post type #2705
    Anh TranAnh Tran
    Keymaster

    Hi, can you post your code?

    in reply to: Serious Site Issue After Updates #2697
    Anh TranAnh Tran
    Keymaster

    Probably something went wrong when updating like missing files or files were broken. Glad that reinstalling fixes the problem ๐Ÿ™‚

    in reply to: WYSIWYG rich-text has no Heading support #2696
    Anh TranAnh Tran
    Keymaster

    Ah, the demo just shows you lots of option that you can adjust for your real project :). Glad that it works for you now.

    in reply to: Can't get terms' meta values in frontend #2695
    Anh TranAnh Tran
    Keymaster

    The thing here is the values return from the function get_term_meta is an array of images' IDs. It doesn't return the full info of images like in rwmb_meta. To get full image info, you can use this code:

    foreach ( $images as $image ) {
        $image = RWMB_Image_Field::file_info( $image, 'thumbnail' );
        echo "<a href='{$image['full_url']}' rel='lightbox'><img src='{$image['url']}' width='{$image['width']}' height='{$image['height']}' alt='{$image['alt']}' /></a>";
    }
    in reply to: Can't get terms' meta values in frontend #2692
    Anh TranAnh Tran
    Keymaster

    Hi, sorry for taking long to reply :(.

    Your code is almost correct. It's just not $cat->$term_id, but $cat->term_id. So the code inside the loop should be:

    $images = get_term_meta( $cat->term_id, 'image_advanced', false );
    var_dump( $images ); // Array of image IDs
    $color = get_term_meta( $cat->term_id, 'color', true );
    var_dump( $color ); // Color
    
    in reply to: WYSIWYG rich-text has no Heading support #2689
    Anh TranAnh Tran
    Keymaster

    Ah, you set 'teeny' => true which shows the minimal UI for the editor. Removing it resolves this problem.

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

    Hi guys, could you please post me the code so I can check it specifically?

    in reply to: WYSIWYG rich-text has no Heading support #2677
    Anh TranAnh Tran
    Keymaster

    By default, the wysiwyg has everything the default editor has. You need to click to the "Toolbar Toggle" button to show the format selection dropdown, like this:

    http://prntscr.com/aoqf1k

    Anh TranAnh Tran
    Keymaster

    Can you just try including the plugin's file directly without putting it inside the 'init' hook?

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

    I don't think so :(. You purchased the bundle on Sep 30 last year. Since then, 3 premium extensions were added to the bundle (Settings Page, Term Meta and Admin Columns). The price at that time was $79 only.

    in reply to: Tabs not shown #2665
    Anh TranAnh Tran
    Keymaster

    I've just tested again and it works. A stupid question, but can you post your code again?

    in reply to: Use repeatable Meta Box field for query orderby #2664
    Anh TranAnh Tran
    Keymaster

    That's the only way I can come up with. I think the solution is quite good for now ๐Ÿ˜‰

    in reply to: Use repeatable Meta Box field for query orderby #2661
    Anh TranAnh Tran
    Keymaster

    Hi,

    I'm afraid we couldn't make it work simply by modifying query arguments. Since the values are stored in a serialized array in the database, the sorting simply can't work.

    I suggest a hack for this: when saving the event times (array), save the first value into another custom field and use that new field for sorting.

    Here is a sample code, you should adapt it to your situation:

    add_action( 'rwmb_{META_BOX_ID}_after_save_post', 'prefix_add_event_start' );
    function prefix_add_event_start( $post_id ) {
        $times = get_post_meta( $post_id, 'event_start', true );
        if ( !empty( $times ) && is_array( $times ) ) {
            $start = reset( $times );
            update_post_meta( $post_id, 'event_start_first', $start );
        }
    }

    And then modify the query arguments by:

    'meta_key' => 'event_start_first',
    'orderby' => 'meta_value',
    'order' => 'ASC',
Viewing 15 posts - 3,331 through 3,345 (of 3,702 total)