Support

Account

Home Forums ACF PRO Search form with meta_field Reply To: Search form with meta_field

  • I had to replace

    $query->set( 'meta_query', array(
                        'key'       => 'isbn',
                        'value'     => $isbn
                    ) );

    with

    $query->set( 'meta_query', array(
                                                    array(
                                                        'key'       => 'isbn',
                                                        'value'     => $isbn
                                                    )
                                                ) 
                            );

    That is, nesting the array into another array as in docs