Beaver Themer MB Term Meta Image
Support › MB Beaver Builder Integration › Beaver Themer MB Term Meta ImageResolved
- This topic has 7 replies, 2 voices, and was last updated 4 years, 7 months ago by
[email protected].
-
AuthorPosts
-
September 24, 2020 at 5:00 AM #22099
[email protected]
ParticipantHi, I created a taxonomy for speakers and a custom field for the single image of the speaker. That works find and it uploads the image to the speaker's taxonomy fine.
I want to pull in the image of the current speaker for a particular PT. I can't figure out how to connect it.
I found this article back in 2018 saying you were fixing it to support MB Term Meta, but I don't see how it connects.
here is a video explaining more: https://share.getcloudapp.com/jkuD208L
Any guidance would be appreciated.
Thank you,
EricSeptember 24, 2020 at 9:04 AM #22102Long Nguyen
ModeratorHi,
You can add an attribute
object_type="term"
to the shortcode to get the term meta value and the setting of the field single_image likesize="thumbnail"
.[rwmb_meta id="field_id" object_type="term" size="thumbnail" object_id="term_id"]
For more information, please follow documents:
https://docs.metabox.io/shortcode/#attributes
https://docs.metabox.io/extensions/mb-term-meta/#getting-field-value
https://docs.metabox.io/fields/single-image/#settingsSeptember 24, 2020 at 12:14 PM #22131[email protected]
Participanthi, Thanks for the reply. I went through all the links but I'm a little sure what the values are that I need to add. I added it to an image module but it doesn't pull in any image for that taxonomy. Is this shortcode supposed to create a image url?
This is what I added.
Shortcode
[rwmb_meta id="sermon_profile" object_type="term" size="thumbnail" object_id="taxonomy-terms"]This is my taxonomy code
https://www.dropbox.com/s/xcy3bt6gbi2e9oc/Screen%20Shot%202020-09-24%20at%201.16.39%20AM.png?dl=0
thanks.
September 24, 2020 at 2:50 PM #22134Long Nguyen
ModeratorHi,
The attribute
object_id
must equal to a number (term ID). In your screen record, it is 16, see https://share.getcloudapp.com/v1uxo516.yoursite.com/wp-admin/term.php?taxonomy=abcde&tag_ID=16&post_type=abcd...
[rwmb_meta id="sermon_profile" object_type="term" size="thumbnail" object_id="16"]
September 24, 2020 at 10:21 PM #22137[email protected]
ParticipantThanks Long,
That worked to add it into the html. It doesn't seem to work with the image modules but I was able to get it into the Beaver Themer template. https://dev.homeservicesites.co/sermon/christmas-blessings-4/
September 25, 2020 at 12:26 PM #22149[email protected]
ParticipantThanks for your help. I was wondering a couple other related things.
- Is there a way to show a list or group of images pulled from the taxonomies set up that link to a group Almost like a series page. I created an image for the categories. I'd like to be able to pull all the category images into one place.
Thanks
September 25, 2020 at 1:56 PM #22151Long Nguyen
ModeratorHi,
You have to create the custom shortcode if you want to show a group of images (field
group
orimage_advanced
) in the Beaver Builder. Refer to this topic: https://support.metabox.io/topic/shortcode-will-not-show-custom-field-group/.September 25, 2020 at 6:16 PM #22156[email protected]
Participanthi thanks. Can the term meta images from the taxonomy be automatically pulled in to one place? For instance, so that it will show all the people images of a particular post type. Not the WordPress authors, but the people from the custom field I created.
-
AuthorPosts
- You must be logged in to reply to this topic.