Can't get custom profile image to show.

Support MB User Meta Can't get custom profile image to show.Resolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #32309
    Andrew_VincentAndrew_Vincent
    Participant

    Hey folks.

    I've followed the example given here: https://docs.metabox.io/extensions/mb-user-meta/ but my image is just not showing in the template.

    • Fields are showing in the User page fine.
    • My custom text field 'position' is returning in the template fine - so $user_id is targeting correctly.
    • $image['url'] gives nothing. If I print_r($image) I get an array which is proving very difficult to dig into to get the url. Why so different to the documentation?
    • This is inside the post loop.

    Thanks

    #32324
    Long NguyenLong Nguyen
    Moderator

    Hi Andrew,

    If you use the field image_advanced, the helper function will return an array of images. Then you will need to use a loop to iterate through elements. Please read more on the documentation https://docs.metabox.io/fields/image-advanced/#template-usage

    #32342
    Andrew_VincentAndrew_Vincent
    Participant

    Ah thanks.

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