Image Advanced WPML translation

Support MB Builder Image Advanced WPML translationResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #29612
    gildo@fattoriacreativa.it[email protected]
    Participant

    Hi, i have translated all my same custom field without problem, but for some reason that I can't understand, for two only custom image field when I use this code

    $room_description__image = rwmb_meta( 'room_primaryinfos__description_image', array( 'size' => 'full','limit' => 1 ) );

    in my default language the function rwmb_meta return correctly the full image array, but when I switch to another language the function return only the image ID.

    Have you any idea about it?
    Thanks!

    #29643
    Long NguyenLong Nguyen
    Moderator

    Hi Gildo,

    I didn't see the issue on my end, screen record https://share.getcloudapp.com/OAuQAkzY. If it works for other fields, the image_advanced also works. You can try to use the WordPress function wp_get_attachment_image() to get the image info based on the image ID.
    https://developer.wordpress.org/reference/functions/wp_get_attachment_image/

    #29693
    gildo@fattoriacreativa.it[email protected]
    Participant

    I solved using wp_get_attachment_image() for the English translation only and for two field only. It's a very strange thing because for all other custom image advacend everything works well. Thanks.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.