flyntwp / flynt

Component based WordPress starter theme, powered by ACF Pro and Timber, optimized for a11y and fast page load results.
https://flyntwp.com
MIT License
734 stars 84 forks source link

ACF field types with _ do not render correctly #392

Closed see8ch closed 3 years ago

see8ch commented 3 years ago

Running into an issue using any ACF field type that contains an _ in the type.

When the page_link type is used, there is an empty select box rendered.

[
    'label' => 'Link',
    'name' => 'link',
    'type' => 'page_link',
    'post_type' =>  [
        0 => 'post',
        1 => 'page',
    ], 
    'allow_null' => 0,
    'multiple' => 0
],

When the color_picker type is used, a standard text field is rendered.

[
    'label' => 'Color',
    'name' => 'color',
    'type' => 'color_picker',
    'default' => '#ffffff',
],
steffenbew commented 3 years ago

Hi @see8ch, thanks for submitting the issue. We'll take a look at it.

domtra commented 3 years ago

Hi @see8ch, unfortunately I can not see an issue here. For me those fields are rendering correctly.

Are the fields already included in our base components, like flexible_content, true_false, post_object also not working?

Do you get any errors in the browsers console? Maybe some scripts are not executed correctly that should add the desired functionality.