Support Forum Β» User Profile

Forum Replies Created

Viewing 15 posts - 3,316 through 3,330 (of 3,958 total)
  • Author
    Posts
  • in reply to: βœ…Seem to be having issues in child theme #3414
    Anh TranAnh Tran
    Keymaster

    I don't think child theme is the problem, because both plugins don't do anything specific for themes.

    Do you see any errors in the log?

    in reply to: βœ…Seem to be having issues in child theme #3409
    Anh TranAnh Tran
    Keymaster

    It works to me, here is what I see:

    http://prntscr.com/bekqk2

    Did you activate the plugin?

    in reply to: Change WP Image Uploader #3408
    Anh TranAnh Tran
    Keymaster

    Unfortunately, it's not supported. The plugin uses only the default WordPress uploader. I think other plugins use different JavaScript API so they won't work together.

    in reply to: Missing Download #3404
    Anh TranAnh Tran
    Keymaster

    Done! πŸ™‚

    in reply to: Missing Download #3401
    Anh TranAnh Tran
    Keymaster

    It's $100 to upgrade. Please purchase it via Paypal and I will refund the $99 of Core Ext. Bundle to you.

    in reply to: Post Meta fields in Media Details Popup #3395
    Anh TranAnh Tran
    Keymaster

    Hi Johann,

    Working with Backbone (which is used to make everything with the media library) in WordPress is a pain. There's no documentation at all in the Codex. There are very few articles about it πŸ™

    You can read the source code of Meta Box to understand how to word with wp.media.view. This is another great tutorial to start working with Backbone view.

    However, in the WordPress environment, there's no official solution to inject fields into the Media Details Popup for now. This is how we use wp.media to open the Media details popup when clicking the edit link. The technique is discovered by funkedgeek on Github.

    I see Jetpack adds some config for Tiled Gallery in the Media popup, which might be a good example how to hack it.

    Anh TranAnh Tran
    Keymaster

    Looks like the problem with the select2 library. Do you see the problem if you load fewer entries (500 for example) and no limit on the displayed result? I tried searching and found only this result but it's not 100% the same issue.

    in reply to: WP REST API #3379
    Anh TranAnh Tran
    Keymaster

    This is done as a standalone plugin here https://github.com/rilwis/mb-rest-api. Will be soon available on WordPress.org.

    in reply to: Responsive Images #3378
    Anh TranAnh Tran
    Keymaster

    Hi, the sizes value returned is not the sizes attribute in responsive image. It's an array of the following info:

    [sizes] => Array
    (
       [thumbnail] => Array
           (
               [file] => press_image-150x150.jpg
               [width] => 150
               [height] => 150
               [mime-type] => image/jpeg
           )
       [medium] => Array
           (
               [file] => press_image-4-300x194.jpg
               [width] => 300
               [height] => 194
               [mime-type] => image/jpeg
           )
       [large] => Array
           (
               [file] => press_image-1024x665.jpg
               [width] => 1024
               [height] => 665
               [mime-type] => image/jpeg
           )
       [post-thumbnail] => Array
           (
               [file] => press_image-624x405.jpg
               [width] => 624
               [height] => 405
               [mime-type] => image/jpeg
           )
    )

    To get the sizes attribute, we can use the following function:

    wp_calculate_image_sizes( $size, $image_src = null, $image_meta = null, $attachment_id = 0 )

    So, in your code, you can do like this:

    foreach ( $images as $image ) {
        $sizes = wp_calculate_image_sizes( array( $image['width'], $image['height'] ), null, null, $image['ID'] );
        echo "\n<a href='{$image['full_url']}'>\n<img src='{$image['url']}' width='{$image['width']}' height='{$image['height']}' alt='{$image['alt']}' srcset='{$image['srcset']}' sizes='{$sizes}'>\n</a>";
    }
    in reply to: Conditional Logic with Tabs #3373
    Anh TranAnh Tran
    Keymaster

    Yeah, I'll add it to future update as it's nice feature. Thanks for your question πŸ™‚

    in reply to: Conditional Logic with Tabs #3367
    Anh TranAnh Tran
    Keymaster

    Dear Nicolas,

    Thanks for using MB Conditional Logic, short answer: It supports Tabs.

    Because Tabs isn't Meta Box's field, it's a DOM Element so you can hide it via using DOM Selector, as already mentioned in the documentation:

    https://metabox.io/docs/meta-box-conditional-logic/#section-use-conditional-logic-outside-meta-box

    In your case, you can add this code to your theme functions.php:

    
    add_filter( 'rwmb_outside_conditions', function( $conditions )
    {
        $conditions['.rwmb-tab-nutrient-content'] = [
            'visible' => ["{$prefix}menu_item_type", 'item_type_a_la_carte']
        ];
        return $conditions;
    } );
    

    Best regards

    Tan

    in reply to: Autocomplete issue #3365
    Anh TranAnh Tran
    Keymaster

    Hi Sinusite,

    Perhaps in your context, the maps field's script in loaded before Geolocation. To fix that, go to inc/class-meta-box-geolocation.php and replace:

    
    add_action('rwmb_enqueue_scripts', array($this, 'enqueue'));
    

    with:

    
    add_action('admin_enqueue_scripts', array($this, 'enqueue'));
    

    to make sure MB Geolocation loaded first.

    Let me know if it works so I'll put the patch to the next release πŸ™‚

    Also, I don't understand this:

    if $meta_boxes[β€˜mine’] is called with AND before $meta_boxes[β€˜with_geo’], it works….
    ( $meta_boxes[β€˜1’] can contain only 1 text field )

    i also put the demo (adress and map fields) in $meta_boxes[β€˜1’] and it seems not working if there only one metabox.

    Best regards,

    Tan

    Anh TranAnh Tran
    Keymaster

    Hi, I see you closed this issue on Github. So I will close this thread now. We'll track the issue with iPad on Github πŸ™‚

    in reply to: Returning CPT meta array, if not empty #3303
    Anh TranAnh Tran
    Keymaster

    Hi @jonwatson87,

    I'm very happy to see you figured it out. The way you use the helper function is correct!

    in reply to: Conditional logic relation #3295
    Anh TranAnh Tran
    Keymaster

    Dear Nicolas,

    Sorry for the long silence. Can you please post your code so I can check?

    Tan

Viewing 15 posts - 3,316 through 3,330 (of 3,958 total)