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
111 stars 31 forks source link

How can I call a Cloudfirestore? #33

Closed mcollinar closed 4 years ago

mcollinar commented 4 years ago

This is not a bug When a read the documentation, I saw this shortcode [realtime class='your-class-name' collection_name='Users' document_name='string'] And I dont know how to use....

Can you put a example of a cloud firestore call ~users~ ?

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots The version of the plugin. E.g PRO v0.5.5

Screenshots If applicable, add screenshots to help explain your problem. You can find the error code from inspecting the browser.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

dalenguyen commented 4 years ago

Hi @mcollinar, here is an example that you can look at

https://wordpress.dalenguyen.me/display-realtime-document-data/

For example, here is my realtime structure

image

That means this is the shortcode that I will put on WordPress inside a Post / Page:

[realtime class='your-class-name' collection_name='cars' document_name='2dd75620-89be-11ea-97ce-5f05b4f33912']

If you don't know how to put the shortcode in WordPress, you can take a look that this video: https://youtu.be/zToMwKsAdwA?t=454