Field connector not working with Simple Image field when inserting into html

Support MB Beaver Builder Integration Field connector not working with Simple Image field when inserting into htmlResolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #18529
    hartsook@gmail.com[email protected]
    Participant

    Beaver Themer recommendation for ACF is that you can insert an image shortcode into an img src html statement. Here's what they say to do:
    <img src="[acf-field-shortcode-goes-here]"/>

    Trying to do that with a MB for example:
    <img src="[wpbb post:meta_box field='hover-image-' image_size='medium']"/>
    results in "Array" instead of the image url.

    1. Can MB images be inserted into html fields?
    2. This is actually trying to debug a problem with using a MB custom field image in a Beaver Builder post grid. The standard code for the posts module is:
    [wpbb-if post:featured_image]
    <div class="fl-post-image">
    [wpbb post:featured_image size='medium' display='tag' align='default' linked='yes']
    </div>
    [/wpbb-if]

    but I want to swap out the featured image with a MB custom field image instead, e.g.

    [wpbb post:meta_box field='hover-image-' image_size='medium']
    

    so the resulting code would be:

    [wpbb-if post:featured_image]
    <div class="fl-post-image">
    [wpbb post:featured_image size='medium' display='tag' align='default' linked='yes']</div>
    [/wpbb-if]

    but that doesn't work. Instead of an image I see the word Array instead. So essentially the same issue as #1 above. How do I upload or choose an image file from the Media Library to a Post MB field and then display that image in straight html or the Custom Post Layout in a BB Module?

    #18575
    Anh TranAnh Tran
    Keymaster

    Hi,

    The BB shortcode for image fields will render full image tag and I think it's not possible to used within HTML module.

    In that case, you can use our shortcode rwmb_meta, like this:

    <img src="[rwmb_meta id='field_id' size='full' attribute='url']">
    

    The shortcode allows you to get a specific attribute of the returned value (which is an array).

    PS: Please use the latest version of Meta Box on Github. There was a bug in getting URL of single image, that I've just fixed.

    #18585
    hartsook@gmail.com[email protected]
    Participant

    tried that, it's working...

    Thanks,

    Pieter

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