Support Forum ยป User Profile

Forum Replies Created

Viewing 15 posts - 3,196 through 3,210 (of 3,708 total)
  • Author
    Posts
  • in reply to: WP REST API #3415
    Anh TranAnh Tran
    Keymaster

    It's now available on wordpress.org: https://wordpress.org/plugins/mb-rest-api/

    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>";
    }
    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: Save Decimal into Number field #3281
    Anh TranAnh Tran
    Keymaster

    That's a myth of the HTML 5 number field :). You can do that simply by using 'step' => 'any'!

    in reply to: โœ…Can we use it within Menus ? #3276
    Anh TranAnh Tran
    Keymaster

    Hi @Maxell, can you please clarify the idea? I'm not sure what you're talking about.

    in reply to: Meta Boxes - Disable in Search #3275
    Anh TranAnh Tran
    Keymaster

    Can you post the code of the search.php page? I think it's best to don't use rwmb_meta on the search.php at all.

Viewing 15 posts - 3,196 through 3,210 (of 3,708 total)