Support » Plugin: Media Library Assistant » Filtering "Ophan" media do batch delete ?

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

    (@dglingren)

    Yes, you have it right, The “Orphan” status means that the item is not used as a Featured Image, not inserted in the body of the post/page, and not actually displayed by any [gallery] or [mla_gallery] shortcode. It’s possible that the item is displayed by another plugin such as “NextGEN Gallery”, but that’s a problem I haven’t addressed yet.

    Sorting and filtering the list is done by adding appropriate SQL clauses to the database query that builds the list. The “where-used” processing cannot be done in this way. For example, to create the “Inserted in” entries every post/page in the database must be scanned to see if the file name(s) appear in the body of the post/page. For the “Gallery in” column, every [gallery] shortcode is found and executed to see which items are returned.

    To minimize the processing load, this work is only done for the items displayed in the current page of the listing. To do the processing for all items, then sort the results would be much too processing intensive.

    What I could do is provide a utility function that does the job only when asked for and then records the results as a category or tag or other taxonomy term, e.g., “orphan”, “bad parent”, “invalid parent”. Then, you could filter the listing by those terms and do whatever you want with the results.

    Would that be enough?

    IIUC, that would allow to tidy unsused images, so that sure would be enough for me.

    Plugin Author David Lingren

    (@dglingren)

    I have just released version 1.10, which allows you to map attachment metadata such as parent issues and reference issues, e.g., “orphan” status, to custom fields.

    You can make the resulting custom field a sortable column in the Media/Assistant submenu table. That should help you do the analysis and cleanup you desire. Let me know if you have any issues with this new feature.

    Thanks again for the suggestion and for your patience.

    thanks again !

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Filtering "Ophan" media do batch delete ?’ is closed to new replies.