Image Selector
ACF Extended Pro
Last Upated: Thursday, Feb 1, 2024
acfe_image_selector
The Image Selector field is made available by the Advanced Custom Fields Extended PRO plugin and provides an Image Selector Field.
Resolve Type
Fields of the acfe_image_selector
type will resolve to a "List of String" in the GraphQL Schema.
The Image Selector allows for an image to represent what is clicked, but the value it represents is a string.
When queried, it returns a list as the field can return one or more than one selected values.
Field Settings
Field Configuration
<?phpadd_action( 'acf/include_fields', function() { if ( ! function_exists( 'acf_add_local_field_group' ) ) { return; } acf_add_local_field_group( [ { "key": "my_field_group_", "title": "My Field Group with acfe_image_selector", "show_in_graphql": 1, "graphql_field_name": "myFieldGroupWithAcfeImageSelector", "map_graphql_types_from_location_rules": 0, "graphql_types": [ "Page" ], "fields": [ { "key": "my_field_", "label": "My Field", "name": "my_field", "type": "acfe_image_selector", "show_in_graphql": 1, "graphql_field_name": "myFieldWithAcfeImageSelector" } ], "location": [ [ { "param": "post_type", "operator": "==", "value": "page" } ] ] } ] );});