Support

Account

Home Forums Backend Issues (wp-admin) relationship field search not working once filtered Reply To: relationship field search not working once filtered

  • two things to try:

    1. firstly, for fun, comment out the $args = array('ppp'=>200); and see if you can just go through the filter with no changes. if not, find the errors, they are either in your javascript console or hiding in your error log (in local do you have wp_debug set to true?)
    2. next, and this may be what you try first if you are querying a particular field, try to be more specific by filtering only the field that you need to filter like this: acf/fields/relationship/result/name={$field_name}

    if you have multiple fields to query against, i wonder if you can dogpile them:

    
    add_filter('acf/fields/relationship/name=title', 'tdr_carousel_query', 10, 3);
    add_filter('acf/fields/relationship/name=keywords', 'tdr_carousel_query', 10, 3);
    add_filter('acf/fields/relationship/name=description', 'tdr_carousel_query', 10, 3);