• Resolved wexzone

    (@wexzone)


    I am using a plugin to allow me to set featured images from the post admin: https://www.ads-software.com/plugins/featured-image-admin-thumb-fiat/

    When I click to add a featured image, in the Media Library popup, it does not show me the category filter.

    So, I looked at the js of the plugin and found this:

    // Set the title and expected images to use in the dialoa
            thumbnail_upload_frame = wp.media.frames.customHeader = wp.media({
                //Title of media manager frame
                title: "Featured Image Admin Thumb",
                library: {
                    type: 'image'
                },
                button: {
                    //Button text
                    text: "Use as thumbnail"
                },
                //Do not allow multiple files, if you want multiple, set true
                multiple: false
            });

    I tried adding the following after “multiple: false”:
    filterable: 'all' // turn on filters

    But still no EML filters. Any ideas?

    https://www.ads-software.com/plugins/enhanced-media-library/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author webbistro

    (@webbistro)

    Hello @wexzone,

    Try this

    // Set the title and expected images to use in the dialoa
    thumbnail_upload_frame = wp.media.frames.customHeader = wp.media({
    
        title: "Featured Image Admin Thumb", // title of media manager frame
        button: {
            text: "Use as thumbnail" //button text
        },
        states: [
            new wp.media.controller.Library({
                library:   wp.media.query({ type: 'image' }),
                multiple:  false, // do not allow multiple files, if you want multiple, set true
                filterable: 'all' // turn on filters
            })
        ]
    });

    -Nadia

    Plugin Author webbistro

    (@webbistro)

    Also, you can use

    filterable: 'eml'

    for EML filters only

    Thread Starter wexzone

    (@wexzone)

    That worked! Thank you!

    Plugin Author webbistro

    (@webbistro)

    You’re welcome, thanks for a great review!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Trying to add categories to plugin for featured images’ is closed to new replies.