Custom Fields
Re-Envisioned
Support General Image Advanced field – not showing images on front end

  • Creator
    Topic
  • #26679
    Mo
    Participant

    Hi, thanks for taking a sec. Newbie with MB so thanks in advance.
    I set up a custom field group using image advanced to upload multiple images to a specific taxonomy (listings).
    The Metabox shows up and seems to work fine on the backend but the images are not appearing on the front end.
    Any insight would be greatly appreciated.
    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #26683
    Long Nguyen
    Moderator

    Hi Mo,

    Thank you for reaching out.

    Can you please let me know how did you create the field image_advanced and show it on the frontend? Please follow this documentation to know how to show it https://docs.metabox.io/fields/image-advanced/#template-usage.

    #26694
    Mo
    Participant

    Hi Long, thanks for your reply.
    I generated the php code and added to the functions file… but still not seeing the images appear on the front end.
    – They do appear on the backend after uploading and the MB seems to function properly.
    Please let me know how to proceed.
    Thank you

    #26697
    Long Nguyen
    Moderator

    Hi Mo,

    Thank you for your additional information.

    There are two steps:

    Please share the code of two steps above, I will help you to check it.

    #26700
    Mo
    Participant

    Hi Long,
    Thanks for your reply.
    I do not understand what I’m supposed to do to use this plugin.
    Perhaps you can contact me via my profile email and we can do a screen share.
    Please let me know.
    Thank you

    #26710
    Long Nguyen
    Moderator

    Hi Mo,

    Please see my short screen record to know how to show the field value on the frontend https://share.getcloudapp.com/nOuoEAmo.

    In this case:
    – I have two fields text with ID my_text, image_advanced with ID my_image
    – Add the helper function to the post template file (you need to find it on your theme templates) to show the field value.

    $my_name = rwmb_meta( 'my_name' );
    echo $my_name;
    
    $images = rwmb_meta( 'my_image', array( 'size' => 'thumbnail' ) );
    foreach ( $images as $image ) {
        echo '<a href="', $image['full_url'], '"><img src="', $image['url'], '"></a>';
    }

    Please see more on the Video tutorial here https://docs.metabox.io/displaying-fields/.

    The important key here is you should have a basic knowledge of coding to use all features of Meta Box and its power.

    If you are not familiar with or lack knowledge about coding, you can still use other page builders to show the field value through the builder. We have two extensions Meta Box – Elementor Integrator and Meta Box – Beaver Themer Integrator to help you do that job.
    https://metabox.io/plugins/mb-elementor-integrator/
    https://metabox.io/plugins/meta-box-beaver-themer-integrator/

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