Skip to content
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

Open
chaselifetech opened this issue Apr 25, 2020 · 2 comments
Open

ACF Support #36

chaselifetech opened this issue Apr 25, 2020 · 2 comments

Comments

@chaselifetech
Copy link

Hello, is there any support for acf?
Thank you
David

@ellie-me
Copy link

ellie-me commented May 10, 2020

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

@Mayanktaker
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants