Forum Replies Created
-
AuthorPosts
-
chief_martin98
ParticipantYou cannot access this content.
chief_martin98
ParticipantYou cannot access this content.
chief_martin98
ParticipantYou cannot access this content.
chief_martin98
ParticipantYou cannot access this content.
chief_martin98
ParticipantYou cannot access this content.
chief_martin98
ParticipantYou cannot access this content.
chief_martin98
ParticipantHi Ernest,
I have received back a message from my developer
“Unfortunately their suggestion won’t work. The logo is stored as an attachment to the user profile. So the image in the user profile is stored in the users database table as just an ID. The location of the image is stored in another database table. So to display the logo, we have to write some code that looks up the ID of the image in the users table and then searches the other table (using that ID as the reference) to find the URL of the image itself.
Their suggestion would only work for fields stored entirely in the users table.”
Do you know what sort of code could help pull this attachment in the profile?
Any help would be greatly appreciated
Thank you
(This is the main reason why I have purchased the support again, as we’d really like to get it to work)
chief_martin98
ParticipantYou cannot access this content.
chief_martin98
ParticipantYou cannot access this content.
chief_martin98
ParticipantHi Ernest,
Excellent, that’s working now. Just to inform you the code was spot on other than it needed to be $r->post_author not $r->author
Thank you very much for the support.
Cheerschief_martin98
ParticipantHello, thanks for your reply.
I have received the following from my developer after passing on your solution.
“That code looks promising, but at the moment it’s returning the nickname of the currently logged in user (e.g. shops/admindave) instead of the nickname of the user in the result. I think the wp_get_current_user function needs changing to something else, but I’m not sure what’s returned in the results array.
Might be worth asking them to suggest an amendment.”
Thanks for your help
chief_martin98
ParticipantYou cannot access this content.
chief_martin98
ParticipantSorry, I also did try clearing the browser cache fully after saving to see if there was a change on the website.
Thanks
chief_martin98
ParticipantHi Ernest,
There is no change in the preview window after saving. So it resets/or stays on the old one.
Do you have any ideas why?
Sorry, when you say the front-end do you mean the website page? No, there is no change there either.
Thank you for your help
chief_martin98
ParticipantThank you very much Ernest, that did the job.
-
AuthorPosts