Support

Account

Home Forums ACF PRO Relationship Filters Not Working

Solving

Relationship Filters Not Working

  • I’m using a repeater field with a relationship sub-field inside each repeater field. I am getting very spotty/inconsistent results when trying to activate the taxonomy and search filters. Sometimes they work and sometimes they don’t. The filters show up, but they are disabled so I can’t use them. Here is the the JSON code that corresponds to the field(s).

    {
        "key": "group_5773fee6b2285",
        "title": "Student Experience 2",
        "fields": [
            {
                "key": "field_5773fee6b8de8",
                "label": "Layout",
                "name": "",
                "type": "message",
                "instructions": "",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "message": "<img src=\"http:\/\/192.168.33.10\/wordpress\/wp-content\/themes\/uwmwebid-2016\/dist\/assets\/img\/student-exp-module-graphic.png\"  style=\"width: 100%;\" \/>",
                "new_lines": "",
                "esc_html": 0
            },
            {
                "key": "field_577d668b73423",
                "label": "Grid 1-6",
                "name": "se_grid_1_6",
                "type": "repeater",
                "instructions": "",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "collapsed": "",
                "min": 6,
                "max": 6,
                "layout": "row",
                "button_label": "",
                "sub_fields": [
                    {
                        "key": "field_577d66d573424",
                        "label": "Select Posts",
                        "name": "se_select_posts",
                        "type": "relationship",
                        "instructions": "",
                        "required": 0,
                        "conditional_logic": 0,
                        "wrapper": {
                            "width": "",
                            "class": "",
                            "id": ""
                        },
                        "post_type": [
                            "gridblocks"
                        ],
                        "taxonomy": [],
                        "filters": [
                            "taxonomy"
                        ],
                        "elements": "",
                        "min": 1,
                        "max": "",
                        "return_format": "object"
                    }
                ]
            },
            {
                "key": "field_5773fee6b9a37",
                "label": "Grid 7 - Tall Photo",
                "name": "se_grid_7",
                "type": "repeater",
                "instructions": "",
                "required": 0,
                "conditional_logic": 0,
                "wrapper": {
                    "width": "",
                    "class": "",
                    "id": ""
                },
                "collapsed": "",
                "min": 1,
                "max": 1,
                "layout": "row",
                "button_label": "",
                "sub_fields": [
                    {
                        "key": "field_5773fee70f40c",
                        "label": "Select a Post",
                        "name": "se_grid_7_select",
                        "type": "relationship",
                        "instructions": "",
                        "required": 0,
                        "conditional_logic": 0,
                        "wrapper": {
                            "width": "",
                            "class": "",
                            "id": ""
                        },
                        "post_type": [
                            "gridblocks"
                        ],
                        "taxonomy": [],
                        "filters": "",
                        "elements": "",
                        "min": "",
                        "max": "",
                        "return_format": "object"
                    }
                ]
            }
        ],
        "location": [
            [
                {
                    "param": "page",
                    "operator": "==",
                    "value": "35"
                }
            ]
        ],
        "menu_order": 0,
        "position": "normal",
        "style": "default",
        "label_placement": "top",
        "instruction_placement": "label",
        "hide_on_screen": "",
        "active": 1,
        "description": "",
        "modified": 1467840111
    }
  • Hi @leclaeli

    I’m afraid I can’t reproduce this issue on my end. Could you please share some screenshots of the issue? Also, could you please try to reproduce the issue on one of the WordPress’ stock themes (like Twenty Sixteen) with other plugins deactivated? If it disappears, then you can activate the theme and plugins one by one to see which one causes the issue.

    Thanks 🙂

  • Thanks for your response James. I’ve had much more consistent results as of late. I’m hoping the issue was theme related and has been resolved. This support request can be closed for now.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Relationship Filters Not Working’ is closed to new replies.