• Resolved Craig F.

    (@iprogressltd)


    It appears that the plugin searches correctly when in the Media Library page, but does not work when the media library is in the lightbox mode. (By clicking “Add Media” from the WYSIWYG)

    I added an ACF text field and saved 1 image with the word “test”

    Media Libary page, showing 1 item found: https://i.imgur.com/QfkIVhJ.png

    Media Libary lightbox, no results: https://i.imgur.com/B3hYmXs.png

    • This topic was modified 2 years, 8 months ago by Craig F..
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mateusz Gbiorczyk

    (@mateuszgbiorczyk)

    Hello @iprogressltd,

    Thanks for your message.

    Add the following code to the functions.php file in your theme directory:

    add_filter( 'acfbs_is_available', function ( $status ) {
        if ( ( defined( 'DOING_AJAX' ) && DOING_AJAX )
            && ( isset( $_POST['action'] ) && ( $_POST['action'] === 'query-attachments' ) ) ) {
            return true;
        }
        return $status;
    } );

    Did this solution help you?

    Best,
    Mateusz

    Thread Starter Craig F.

    (@iprogressltd)

    Yes that fixed the problem, thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Media Library search’ is closed to new replies.