• Resolved LS

    (@lsterling03)


    I am able to display any of my WP-members custom fields using get_user_meta, except for the image field I added. It returns nothing. Do you have to do something special to display an image field?

    I’ve tried both the current WP-Members release, and the beta version from github.

    Thanks!

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

    (@lsterling03)

    To clarify,

    get_user_meta(2, 'business_name', true)

    will successfully return the business name custom text field.

    But….
    get_user_meta(2, 'np_logo',true) // also tried 'false'

    is an image field, and it returns nothing at all. If I do a var_dump, it’s just empty.

    • This reply was modified 9 years, 1 month ago by LS.
    Thread Starter LS

    (@lsterling03)

    Oh man. Nevermind! The field name was logo_np, not np_logo. I was flipping it in my brain, apparently. Embarrassing!

    Marking it as resolved!

    • This reply was modified 9 years, 1 month ago by LS.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Can’t display custom image field’ is closed to new replies.