Show Vanilla Avatar in Wordpress
Hi there, i have a tricky one which drives me insane!
People can post on my wordpress blog. In order to do this they have to own a account. As far as i understood I have two user-databases at the moment. (Because of the WP-Vanilla Bridge.)
I want to put the vanilla avatar of the post-author under the wordpress post header. So i would need to create a script which looks in the wordpress database who the author of the current post is. (Well, I get the Author name already as a meta-information in my wordpress entry-title if that helps.) In the next step the script should head over to the vanilla database and get the user. As far as I read in the forum i could call the picture from json.
Is anybody bored and skilled enough to help me with this one? My Coding skills are growing but still to limited for such an example:/ I know, in the end it is just a little picture. But hey, this little picture would make me very happy:D
Answers
You might have better chances if you ask in a forum where WordPress guys hang around. YOu can get the information simply as that: https://vanillaforums.org/profile.json/Moehrenstein
You'll find the "PhotoUrl" which is what you need. But I do not know how something can be shown in WP...
Looking at that, it shouldn't be too hard. It basically is the example from the plugin API page added with only very few lines of code (beginning at the inline comment in the final if condition).
I bet there a billion examples for adding your own filters to word press. Take one of them, use what you see in the code above and you are good to go.
Wow, you are golden RJ! Thanks for pointing me in the right direction!!!
Hello, guys! I have the same question too. I am using one of the wordpress blog themes for my website. Can someone please help me with this issue?
@tukol
I've deleted the link from your post, as it is superfluous.
I'm also not sure why you are asking for help when the solution has already been provided.
What parts of the provided solution have you tried?