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

Add support for custom ACF fields #88

Open
codemonkeynorth opened this issue Mar 4, 2020 · 0 comments
Open

Add support for custom ACF fields #88

codemonkeynorth opened this issue Mar 4, 2020 · 0 comments

Comments

@codemonkeynorth
Copy link

We are currently using this
https://github.com/joppuyo/acf-image-aspect-ratio-crop

which creates a field type image_aspect_ratio_crop

I can seemingly use it by adapting FieldFactory.php

case 'image':
case 'img':
case 'image_aspect_ratio_crop': // <= added this
  $field = new Image($post);

Would be good to be able to define that dynamically, but I'm guessing the internal field mapping won't necessarily be the same?

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

1 participant