corcel / corcel/acf

Add support for custom ACF fields

Open
#88 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
132
Forks
102
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.