-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ACF Support #36
Comments
The problem with ACF is that you have to create your custom endpoints on the WordPress REST API for it to work, and it's not something you would like to include in a plugin that is designed to work with the standard that WordPress has already created. I'm doing the same setup as you and I had to create a custom wordpress plugin that extends the WordPress REST which in turn calls ACF functions. After you have your custom endpoints in place then you have to create your own functions inside of Flutter designed to send HTTP requests and parsing JSon to Dart objects, you can use Dart standard HTTP functions or dio for the task + json serializable. I'll leave you some links from the official Wordpress docs regarding adding new endpoints to WordPress, seriously is not that complicated. https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/ https://flutter.dev/docs/development/data-and-backend/json https://codeburst.io/quick-tip-how-to-make-http-requests-in-dart-53fc407daf31 |
Use Pods Framework plugin to create custom post types and custom fields. It automatically creates all the rest api endpoints for you. Pods is better than ACF if your using this flutter package. |
Hello, is there any support for acf?
Thank you
David
The text was updated successfully, but these errors were encountered: