Support

Account

Home Forums ACF PRO Add filter on the relationship field inside a group Reply To: Add filter on the relationship field inside a group

  • Hi,
    with the filter you provided me the answer is this below.

    The group is simple and is not contained in other groups or a clone.

    Array
    (
        [ID] => 0
        [key] => field_5f1b04a650dbe
        [label] => 
        [name] => acf[field_5f1b04a650dbe]
        [prefix] => acf
        [type] => group
        [value] => Array
            (
                [field_5fad6bdaa2903] => 1
                [field_5f1b0571deda4] => 
            )
    
        [menu_order] => 0
        [instructions] => 
        [required] => 0
        [id] => acf-field_5f1b04a650dbe
        [class] => 
        [conditional_logic] => 0
        [parent] => group_5f1b04a64d28d
        [wrapper] => Array
            (
                [width] => 
                [class] => 
                [id] => 
            )
    
        [layout] => block
        [_name] => link_scope_pages
        [_valid] => 1
        [sub_fields] => Array
            (
                [0] => Array
                    (
                        [ID] => 0
                        [key] => field_5fad6bdaa2903
                        [label] => Automatico
                        [name] => is_automatic
                        [prefix] => acf
                        [type] => true_false
                        [value] => 
                        [menu_order] => 0
                        [instructions] => 
                        [required] => 0
                        [id] => 
                        [class] => 
                        [conditional_logic] => 0
                        [parent] => field_5f1b04a650dbe
                        [wrapper] => Array
                            (
                                [width] => 
                                [class] => 
                                [id] => 
                            )
    
                        [message] => 
                        [default_value] => 1
                        [ui] => 1
                        [ui_on_text] => 
                        [ui_off_text] => 
                        [wpml_cf_preferences] => 0
                        [_name] => is_automatic
                        [_valid] => 1
                    )
    
                [1] => Array
                    (
                        [ID] => 0
                        [key] => field_5f1b0571deda4
                        [label] => Seleziona pagine ambito
                        [name] => items
                        [prefix] => acf
                        [type] => relationship
                        [value] => 
                        [menu_order] => 1
                        [instructions] => 
                        [required] => 1
                        [id] => 
                        [class] => 
                        [conditional_logic] => Array
                            (
                                [0] => Array
                                    (
                                        [0] => Array
                                            (
                                                [field] => field_5fad6bdaa2903
                                                [operator] => !=
                                                [value] => 1
                                            )
    
                                    )
    
                            )
    
                        [parent] => field_5f1b04a650dbe
                        [wrapper] => Array
                            (
                                [width] => 
                                [class] => 
                                [id] => 
                            )
    
                        [post_type] => Array
                            (
                                [0] => page
                            )
    
                        [taxonomy] => 
                        [filters] => Array
                            (
                                [0] => search
                            )
    
                        [elements] => Array
                            (
                                [0] => featured_image
                            )
    
                        [min] => 
                        [max] => 
                        [return_format] => object
                        [wpml_cf_preferences] => 0
                        [_name] => items
                        [_valid] => 1
                    )
    
            )
    
        [_prepare] => 1
    )