• I am trying to get the user id for each user card, but everything I have tried only shows my ID not the ID for each user card. How do I get the user ID to show on their card.

    Also I have an image upload that I want to also display on the card. I can get it to show the card for the current logged in user but that same image is displayed on all user cards even if another user has their own image.

    Thanks for your help and time.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter GregW

    (@gwmbox)

    Not sure how I missed it but user.id gives the User ID of the specific member cards User ID.

    Now I need to find a way to call an image on the member card. I tried user.my_photo but that does not work.

    There is meant to be 3 curly brackets around each of those but this forum strips them

    Anyone able to help?

    • This reply was modified 3 years, 9 months ago by GregW.
    • This reply was modified 3 years, 9 months ago by GregW.
    Thread Starter GregW

    (@gwmbox)

    I have tried lots of combinations, including;

    do_shortcode("[um_user meta_key='my_photo']")
    <code>user.my_photo</code>
    um_user('my_photo')

    Just the image name would be sufficient for what I need

    I am unable to select the image upload field in the settings for the card, so I guess that is why it will not display. The images are there so their should be a way to get the image name at least.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘In teh Card view how do I get the user_id and an image?’ is closed to new replies.