dalenguyen / firebase-wordpress-plugin

A plugin that helps to integrate Firebase to WordPress
https://firebase-wordpress-docs.readthedocs.io
GNU General Public License v2.0
110 stars 31 forks source link

Syncing custom_fields #192

Closed ml1970 closed 2 years ago

ml1970 commented 2 years ago

Syncing posts from WP to Firebase/FirestoreDB with new or updated "custom_fields"... works good (in Firebase-map-format), but if I delete a custom_field in WP the custom_field in firebase will not deleted... Is this a bug or still not implemented?

And second: the comment_count is synced. Is there a way, to sync Comments in WP to Firebase?

dalenguyen commented 2 years ago

Hi @ml1970, how does the custom field look on your firestore? Can you send a snapshot?

How do you delete a custom field in WordPress?

ml1970 commented 2 years ago

Hi, I'm using your plugin as an bridge between Wordpress and Firestore to use the synced Firestore-documents in an iOS-App. The custom fields storing status informations about the WP-post for usage in the App. But this is not important for the sync-process - it is only for your information, it is a step long behind the sync-process ;-)

I save the status informations in different custom fields. When I update the WP-Post and publish it, it will synced correct (Image 1 and 2) - but when I delete the custom field and update the post in WP, the custom field is still in Firestore (Image 3 and 4).

cf_001 cf_002 cf_003 cf_004

dalenguyen commented 2 years ago

Thanks, @ml1970. I will check this one out.

dalenguyen commented 2 years ago

Hi @ml1970, I just update the plugin to v3.5.1. Could you please update it and try if it works?

Remember to add product key & domain names if you haven't. https://techcater.com/shop/my-account

https://www.youtube.com/watch?v=ugkE25bAeKw&ab_channel=TechCater

ml1970 commented 2 years ago

Hi @dalenguyen, thank you for the quick solution. Now it works perfect as expected. Great!

And I had a second question ;-) - is it possible to sync published user-comments from WP to Firebase/Firestore?

Greetings from Germany

dalenguyen commented 2 years ago

@ml1970 it may take a while since I have a long list of backlogs. I'll add it to the todo list :D