Image Advanced field - not showing images on front end
- This topic has 5 replies, 2 voices, and was last updated 4 years ago by
Long Nguyen.
-
AuthorPosts
-
March 25, 2021 at 4:14 AM #26679
Mo
ParticipantHi, 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!March 25, 2021 at 12:41 PM #26683Long Nguyen
ModeratorHi 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.
March 25, 2021 at 9:32 PM #26694Mo
ParticipantHi 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 youMarch 25, 2021 at 11:04 PM #26697Long Nguyen
ModeratorHi Mo,
Thank you for your additional information.
There are two steps:
- Create the meta box and custom fields that are displayed on the backend https://docs.metabox.io/creating-meta-boxes/
-
Show the field value on the frontend https://docs.metabox.io/displaying-fields/
Please share the code of two steps above, I will help you to check it.
March 25, 2021 at 11:21 PM #26700Mo
ParticipantHi 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 youMarch 26, 2021 at 9:53 AM #26710Long Nguyen
ModeratorHi 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 fieldstext
with IDmy_text
,image_advanced
with IDmy_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 MB Beaver Builder Integration to help you do that job.
https://metabox.io/plugins/mb-elementor-integrator/
https://metabox.io/plugins/meta-box-beaver-themer-integrator/ -
AuthorPosts
- You must be logged in to reply to this topic.