Title: Viström Media Library Categories
Author: Viström
Published: <strong>August 10, 2022</strong>
Last modified: February 9, 2024

---

Search plugins

![](https://ps.w.org/vistrom-media-library-categories/assets/banner-772x250.png?
rev=2768934)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/vistrom-media-library-categories/assets/icon.svg?rev=2768877)

# Viström Media Library Categories

 By [Viström](https://profiles.wordpress.org/vistromdigital/)

[Download](https://downloads.wordpress.org/plugin/vistrom-media-library-categories.1.2.0.zip)

 * [Details](https://pcd.wordpress.org/plugins/vistrom-media-library-categories/#description)
 * [Reviews](https://pcd.wordpress.org/plugins/vistrom-media-library-categories/#reviews)
 *  [Installation](https://pcd.wordpress.org/plugins/vistrom-media-library-categories/#installation)
 * [Development](https://pcd.wordpress.org/plugins/vistrom-media-library-categories/#developers)

 [Support](https://wordpress.org/support/plugin/vistrom-media-library-categories/)

## Description

Vistrom Media Library Categories provides the ability to categorize and filter your
files in the WordPress media library. You can use it in the grid view, list view
and in the media modal. The plugin also provides bulk actions to add or remove categories
for multiple attachments at once.

### Features

 * Use any taxonomy for attachments (built-in or custom)
 * Assign the terms in media library or the regular list view.
 * Filter attachments by terms in media library and admin-list.
 * Bulk edit attachments in either the media library or admin-list.

## Screenshots

[⌊Filter by taxonomies in media library list-view.⌉⌊Filter by taxonomies in media
library list-view.⌉[

Filter by taxonomies in media library list-view.

[⌊Filter by taxonomies in media library grid.⌉⌊Filter by taxonomies in media library
grid.⌉[

Filter by taxonomies in media library grid.

[⌊Bulk-edit attachments in list-view.⌉⌊Bulk-edit attachments in list-view.⌉[

Bulk-edit attachments in list-view.

[⌊Bulk-edit attachments in library grid.⌉⌊Bulk-edit attachments in library grid.⌉[

Bulk-edit attachments in library grid.

[⌊Filter by taxonomies when selecting media.⌉⌊Filter by taxonomies when selecting
media.⌉[

Filter by taxonomies when selecting media.

## Installation

 * Download and install using the built in WordPress plugin installer.
 * Activate in the “Plugins” area of your admin by clicking the “Activate” link.
 * No further setup or configuration is necessary.

## FAQ

### I have custom taxonomies for attachments in my theme, how do i hide them from being rendered via the plugin?

Using the filter below, you can prevent taxonomies from being rendered as a result
of this plugin.

    ```
    add_filter('vistrom_media_unsupported_taxonomy_names', function () {
        return [
            'names-to-blacklist' // Your taxonomy name
        ];
    });
    ```

### How can i add custom fields to the bulk edit views?

Using the actions below it’s possible to add your own custom fields to each respective
bulk edit view. The views are located in the following folder _/views/admin/media/_

    ```
    // Grid modal
    add_action('vistrom_media_bulk_edit_grid_start', 'render_my_field');
    add_action('vistrom_media_bulk_edit_grid_end', 'render_my_field');

    // List view
    add_action('vistrom_media_bulk_edit_list_start', 'render_my_field');
    add_action('vistrom_media_bulk_edit_list_left_column_start', 'render_my_field');
    add_action('vistrom_media_bulk_edit_list_left_column_end', 'render_my_field');
    add_action('vistrom_media_bulk_edit_list_center_column_start', 'render_my_field');
    add_action('vistrom_media_bulk_edit_list_center_column_end', 'render_my_field');
    add_action('vistrom_media_bulk_edit_list_right_column_start', 'render_my_field');
    add_action('vistrom_media_bulk_edit_list_right_column_end', 'render_my_field');
    add_action('vistrom_media_bulk_edit_list_end', 'render_my_field');

    function render_my_field()
    {
        echo "<input type='text' name='custom_field' value='' placeholder='My field'>";
    }
    ```

### How can i save my custom added fields?

To save the fields added to the bulk edit views, you can use the following actions.
All supported taxonomies are saved automatically.

    ```
    add_action('vistrom_media_before_bulk_update', 'save_my_field', 10, 2);
    add_action('vistrom_media_after_bulk_update', 'save_my_field', 10, 2);

    function save_my_field($postIds, $postData)
    {
        foreach ($postIds as $id) {
            update_post_meta($id, 'custom_field', $postData['custom_field']);
        }
    }
    ```

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Viström Media Library Categories” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ Viström ](https://profiles.wordpress.org/vistromdigital/)

“Viström Media Library Categories” has been translated into 1 locale. Thank you 
to [the translators](https://translate.wordpress.org/projects/wp-plugins/vistrom-media-library-categories/contributors)
for their contributions.

[Translate “Viström Media Library Categories” into your language.](https://translate.wordpress.org/projects/wp-plugins/vistrom-media-library-categories)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/vistrom-media-library-categories/),
check out the [SVN repository](https://plugins.svn.wordpress.org/vistrom-media-library-categories/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/vistrom-media-library-categories/)
by [RSS](https://plugins.trac.wordpress.org/log/vistrom-media-library-categories/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.2.0

 * Test up to WordPress 6.3.1.
 * Declare HPOS compatibility with WooCommerce.

#### 1.1.1

 * Add FAQ section to readme.
 * Improve the UI for the bulk edit forms.
 * Allow the bulk edit modal to be closed using the escape button.
 * Fix: Multiple categories with the same label will now be rendered in the library
   grid.
 * Fix: The page can now be scrolled after closing the bulk edit modal in library
   grid.

#### 1.1.0

 * Add a checkbox to determine if taxonomies should be replaced or added via bulk
   edit.
 * Align the post-title with the delete button when listing the chosen attachments
   in bulk edit.

#### 1.0.1

 * The bulk-edit button in library should only be visible while grid is active.
 * Update readme

## Meta

 *  Version **1.2.0**
 *  Last updated **3 years ago**
 *  Active installations **30+**
 *  WordPress version ** 5.3 or higher **
 *  Tested up to **6.3.14**
 *  PHP version ** 7.4 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/vistrom-media-library-categories/)
   and [Swedish](https://sv.wordpress.org/plugins/vistrom-media-library-categories/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/vistrom-media-library-categories)
 * Tags
 * [bulk edit](https://pcd.wordpress.org/plugins/tags/bulk-edit/)[categories](https://pcd.wordpress.org/plugins/tags/categories/)
   [category](https://pcd.wordpress.org/plugins/tags/category/)[library](https://pcd.wordpress.org/plugins/tags/library/)
   [media](https://pcd.wordpress.org/plugins/tags/media/)
 *  [Advanced View](https://pcd.wordpress.org/plugins/vistrom-media-library-categories/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/vistrom-media-library-categories/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/vistrom-media-library-categories/reviews/)

## Contributors

 *   [ Viström ](https://profiles.wordpress.org/vistromdigital/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/vistrom-media-library-categories/)