I am trying to: So, I'm trying to display the user image from custom field when an image is uploaded, if there are no image uploaded to display a specific image.
The user image custom field is generated by Unlimited Membership Pro, but it is managed by Toolset.
I'm trying to do that using this code
Hello. Thank you for contacting the Toolset support.
I would like to know here are you checking the current logged in user image?
Additionally, how you wrote the conditional shortcode does not look the correct way. I need to check how the field "ihc_avatar" value stored in the database.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
So, the site is a membership site, and in the Profile CPT every user can create only one profile page. And than, if it is possible, I think that a fastest solution is to sync the Profile CPT featured image with the user image and vice versa on upload. And, insted to use the user image custom field to display the user image in Profile CPT post, use the featured image that permit me to have more settings to display the image.
=> OK - so basically you want to copy the featured image of Profile CPT to the field ihc_avatar?
Additionally, I would like to again clarity your requirement here that if ihc_avatar has image - display that image otherwise you want to display the user profile image - correct?
If it is possible I think that the fastest way is to copy the featured image of Profile CPT to the field ihc_avatar that it is a user custom field, and in the Profile CPT post I will display the featured image as user profile image becuse with sync now are indentical, and with the featured image I can set automatically that if the featured image has image the display the feature image, otherwise display a standard avatar that I uploaded before.
I need to do this, because I'm working to create a messaging system that it use the User image and if the User image is different from the Profile CPT post featured image, is too difficult for the users to know from which person who had a profile page comes the messages.
When you will submit the post - it will automatically copy the featured image of Profile CPT to user custom field ihc_avatar. Could you please confirm.
Hi Minesh, yes, it work very fine!
Now, I'm trying to set the conditional logic to display e general image when there is not a featured image selected.
New threads created by Minesh and linked to this one are listed below:
H Minesh,
something was wrong, I don't know whats append. Now all the custom layout style that I have built with Divi desappear. All css customizations and also the divi style are not visible. I see the page structure but not css.
Why?
What should I do to solve the issue?