Image in User Meta
-
Is it possible to link a File Upload field to user meta? I don’t see the option in the form. If it’s currently not possible, maybe you could implement it by adding the image’s URL to User Meta. So I could use it like a shortcode:
<img src='[image_field_name]' />Or maybe calling the field like this:
<?php $user_id = get_current_user_id (); $image_field_name = get_user_meta($user_id, 'image_field_name', true); ?> <html> <body> <img src="<?php echo $image_field_name; ?>"> </body> </html>Then you can just add a post explaining the method in your blog.
Maybe you could use this to overwrite the user’s standard image?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Image in User Meta’ is closed to new replies.