Support

Account

Home Forums Backend Issues (wp-admin) Multiple Relationship Query Filters

Helping

Multiple Relationship Query Filters

  • Hi there, I’m using the exact example code found here: https://www.advancedcustomfields.com/resources/acf-fields-relationship-query/

    It’s working perfectly but I noticed that it changed the filtering functionality for every instance where the relationship field type is used. My question, is there a way to register the children filter so that it can be used only in specific components?

    For example: I have a “more news” component using the relationship field type on a news page that should be displaying all content to the user. Since adding this filter it now displays no results as it has no children.

  • You need to use one of the more specific hooks that uses field name or field key

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

You must be logged in to reply to this topic.