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

    (@dglingren)

    Thanks for your kind words and for your question. The short answer is “yes”, but the solution details depend on the context in which you want to display the results. There are two alternatives:

    1. The Media/Assistant submenu table. The “Attached to” column will display non-published post status values, e.g., “Draft”. You could create a custom table view that only includes the non-published stati, or only drafts.
    2. The [mla_gallery] shortcode. You could create a gallery display that only includes the non-published stati, or only drafts.

    Either alternative will require some straightforward PHP code that uses some of the MLA hooks to perform a custom database query and return the results. The PHP code can be packaged in a small custom plugin or added to your theme’s functions.php file.

    If you tell me which alternative you have in mind I can create an example plugin for it. If you give me your contact information I can send you a copy by e-mail so you can try it out. You can use the Contact Us page at our web site:

    Fair Trade Judaica/Contact Us

    Thanks for an interesting idea and for your interest in the plugin.

    Thread Starter milkchic

    (@milkchic)

    Wow – that was quick 😀
    I would like to be able to filter the media library in order to bulk delete images attached to posts in trash (can’t hard delete the posts so stuck with a load of unnecessary images at the moment).

    Plugin Author David Lingren

    (@dglingren)

    Thanks for working with me offline to develop the mla-custom-view-example.php custom plugin to add “Attached” and “Unpublished” views to the Media/Assistant submenu. I am happy to hear they are of use in your application.

    I have released MLA version 2.10, which has the new example in the /examples/ directory. I am marking this topic resolved, but please let me know if you have any problems or further questions regarding the custom views example. Thanks for your help with this interesting application idea.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Filter by post status’ is closed to new replies.