Hi there can you please tell me how we can sync users comments from all subsite to main site
Example:- mainwebsite.com ( my buddypress profile with youzify comment tab)
____mainwebsite.com/subsite1 ( my comment here on Hello world blog post ) and I want to sync this comment to my main website or user profile tab..
This is possible?
Thanks in advance 😊
Thank you for the question.
The comments have their own table. You will most probably not be able to synchronize them as the posts for these comment do not exist on your main site. You can still load them on your main site.
You can use the combination of switch_to_blog() and restore_current_blog() to load the comments from sub site.
since you are using Youzify, I will suggest contacting them and asking how can you switch to the sub blog at the beginning of comments tab content loading and how to restore at the end.
You must be logged in to reply to this topic.