Display Realtime Collection Data

This shortcode will help to retrieve a whole collection data from Realtime database and display it as a table on your page or post.

Remember to set the security rule for your database, so the right people can read your document.

// show realtime data basing on collection name & document id
[realtime_col class='your-class-name' collection_name='users' display_fields='email,firstName,gender,food,hobbies,phone']

I suggest that you also add this shortcode to show any error when retriving data:

[firebase_error class='your-class-name'][/firebase_error]

It will get data from users collection, and the fields that will be shown are email, firstName, gender, food, hobbies, phone. You style it by replacing your-class-name.

Here is how it will be displayed: