Wordpress Sync

After you have finished the creation of an account and connect to firebase, you should add a new connected account to WordPress. 

Go Here

https://zapier.com/app/settings/authorizations

And search for WordPress

IULBtDcn1nmZGZYmShyfF5w8xez7KEKpJYlvmoSd.png

Follow the onscreen instruction to connect to your WordPress account. 


Note that the ZAPS will insert the new posts and categories. 


We will need to create two Zaps

https://zapier.com/app/dashboard


Sync Categories ZAP

Click on the orange button "Make a ZAP"

STEP 1 - Trigger

Choose a Trigger App : WordPress

Click on show less common options

Select: New Category - Triggered when you add a new category.

In the next step, you should see the previous connected WordPress account. Click Save+Continue

In the next screen, pick one test category and click Continue.

Now click on "Your Zap currently lacks an Action step. Add one now!".

STEP 2 - Action

Select: Firebase / Firestore

Select: Create Cloud Firestore Document

In the next step, you should see the previous connected Firebase account. Click Save+Continue

For Collection (required) select: Use a custom value

Custom Value for Collection ID: news_collection  <--- or something specific based on your needs

For Document ID: Use "Term ID"  <--- You can pick this value from the dropdown

In Data (optional)  -- Create two fields

title:  Use "name" <--- You can pick this value from the dropdown

description: Use "description" <--- You can pick this value from the dropdown

You can run the test to confirm it works. 

After you run the test you should see your new collection in Firestore. 

This step will look like this

X6csQMDnGjNS7gPzTSxQ1ymO2vrUUxXg5Npe4Q5d.jpeg




Sync Articles ZAP

Click on the orange button "Make a ZAP"

STEP 1 - Trigger

Choose a Trigger App : WordPress

Select: New Post - Triggered when you add a new post.

In the next step, you should see the previous connected WordPress account. Click Save+Continue

On the next step syn only Published Posts, and Post of type Post

In the next screen, pick one test post and click Continue.

Now click on "Your Zap currently lacks an Action step. Add one now!".

STEP 2 - Action

Select: Firebase / Firestore

Select: Create Cloud Firestore Document

In the next step, you should see the previous connected Firebase account. Click Save+Continue

For Collection (required) select: Use a custom value

Custom Value for Collection ID: news  <--- or something specific based on your needs

Document ID: Leave blank or use Post ID <--- You can pick this value from the dropdown

Data

category: news_collection/{Terms Term ID} <-- where {Terms Term ID} is  picked value from the dropdown

Nom1OiNAJetA5BRxNdxvrZFdO19F5RVJ21p2bJGh.png

description: Select Post Content

image: Select Post Thumbnail Link <-- or another image response

date: Select Post Date

shareLink: Select Link

You can run the test to confirm it works. 

After you run the test you should see your new collection in Firestore.