Support » Plugin: Media Library Assistant » Search wordpress media library by attached post title

  • Resolved norbou


    I have over 5.000 images in my media library, all attached to many of posts as they were uploaded when the posts were created.

    By default it seems WordPress only lets you search for images in the media library by its title generated from filename (without extension). Unfortunately this is no good as a lot of my files have crazy GUID style names, not keywords that relate to the post they are attached to.

    Is there a way I can modify the search so that it also searches by attached post/page title? I am using MLA plugin, but this seems to be impossible also. I think it can very help. I need to do some bulk operations within media files attached to specific parent. And also, when this will be possible, media tags and categories will not be so needed.

    Any help greatly received!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Lingren


    Good to hear from you again – thanks for your question and for the link to your site. There are some fabulous buildings and images there!

    There is no “parent title” search option in the current MLA version, but you can use the parent’s ID value to find all the items attached to it.

    The easiest way to find the ID value for a post, page or custom post type is to go to the Posts/All Posts submenu table and hover over the “Edit” link in the Title column. The ID value is part of the URL, in the post= query argument.

    You can enter the ID value (or several values separated by spaces or commas) in the Media/Assistant Search Media text box. All of the items attached to those ID(s) will be displayed in a filtered table. Once that’s done you can use the Bulk Edit action on any or all of the items displayed.

    I will investigate the work required to extend the Search Media function to the parent title. In the interim I hope you will find the existing parent ID search feature useful for your application. Thanks for your continued interest in the plugin.

    Plugin Author David Lingren


    Thanks you for your patience in awaiting progress on this topic!

    I have uploaded a new MLA Development Version dated 20180417 that contains a new “MLA Parent Search Example” plugin and a few MLA enhancements required to support it. To get the Development Version, click this link to download the Development Version ZIP archive:

    Once you have the ZIP archive on your system:

    1. Login to your site’s Admin area and navigate to Plugins/Installed Plugins.
    2. Find Media Library Assistant and deactivate it.
    3. Find Media Library Assistant and delete it. You will not lose any settings.
    4. Go to Plugins/Add New.
    5. Click “Upload Plugin”, to the right of the Add Plugins title.
    6. ”Browse…” to the location of the ZIP Archive and click on it.
    7. Click “Install Now”, to the right of “Browse…”
    8. When the install completes, click “Activate Plugin” at the bottom of the screen.
    9. When the activation completes, go back to the Plugins/Installed Plugins screen.
    10. Scroll down to “Media Library Assistant” and look for a date like “20180417” at the start of the Description. That’s how you know you have a Development Version. You can also go to the Settings/Media Library Assistant submenu and see the date stamp in the heading.

    That’s it. I don’t change the version number of the Development Version, so you will be notified when the next official version comes out and the normal update process will continue to work.

    To install the example plugin, navigate to the Settings/Media library Assistant Documentation tab and click the “Example Plugins” button. You will see a table that lists all the example plugins and gives you a “one-click” action for installing them. Type “parent” in the text box and click “Search Plugins” to filter the table. You are looking for “MLA Parent Search Example” example plugin. Find that plugin and hover over the title in the left-most column. Click the “Install” rollover action, then go to the WordPress Plugins/Installed Plugins submenu and activate it as you would any other plugin.

    Once the example plugin is installed and activated you can add a “parent:” prefix to the Media/Assistant Search Media text box. Everything after the prefix will be used to find published posts and pages that contain the values you enter in the fields you select (below the search box). The Media Library items attached to the posts/pages matching your criteria will be returned in the submenu table.

    It would be great if you can install the Development Version and new example plugin and let me know how they work for you. Thanks for inspiring an interesting new example plugin.

    Plugin Author David Lingren


    I have released MLA version 2.73, which contains the “MLA Parent Search Example” plugin created for this topic.

    I am marking the topic resolved, but please update it if you have any problems or further questions about the example plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Search wordpress media library by attached post title’ is closed to new replies.