Solved: Re-sync avatars to WordPress comments


(Florian Beer) #1

After moving Discourse to a new host (and Docker) all the avatars in the linked WordPress’ previously existing comments don’t show up anymore. I figure this is because the WordPress database still has the old avatar URLs saved.
Is there any way to re-sync the avatar URLs so they link to the current Discourse user avatars?

Thanks in advance for any ideas on that topic.

PS: I’m not reluctant to write a small PHP script to e.g. fetch the avatars or something like that. I just need some pointers in the right direction.


(Patrick Klug) #2

Any input at all? This is apparently why our blog comments look so awful on greenheartgames.com


(Florian Beer) #3

My solution was to completely de-install the plugin and re-clone from GitHub - discourse/wp-discourse: WordPress plugin that lets you use Discourse as the community engine for a WordPress blog

After enabling the plugin in WordPress again, the avatars started to show up.