How to get all fields from CMS items
-
Hi everyone,
I would like to create a connection between my app and WordPress, similar to what Integromat / Zapier does.
I want to create a connection and retrieve all the fields for let’s say a blog. How can I do that with the WordPress API?
Thank you
-
Hi there,
There are 2 ways that I know about to fetch data from WordPress, the REST API and the GraphQL API. The REST API comes native in WordPress, and GraphQL would need to be accessed using a plugin.
You can learn about the REST API here:
https://developer.wordpress.com/docs/api/You can learn about WP GraphQL here: https://www.wpgraphql.com
Differences between GraphQL and Rest API: https://developer.wordpress.com/docs/api/
Additionally, if you were looking for something a little bit easier, there are automation plugins similar to Zapier that can retrieve and send data using webhooks, like this one for example.
I hope some of these references have the information you are looking for!
I hope these links were able to point you in the right direction.
- The topic ‘How to get all fields from CMS items’ is closed to new replies.