F4 Media Taxonomies

Description

F4 Media Taxonomies provides the ability to filter the media library by categories, tags and/or custom taxonomies.
You can use the built-in taxonomies (category or post_tag) or any custom taxonomy.

Si une taxonomie est affectée aux fichiers joints, vous pouvez assigner à l’un d’entre eux autant de termes de cette taxonomie que nécessaire.
Vous pouvez les assigner directement dans la médiathèque ou dans chaque fenêtre modale d’insertion de média.
Il existe également une action groupée astucieuse dans la médiathèque qui vous permet d’assigner un seul terme à plusieurs fichiers joints à la fois.

Les fichiers joints peuvent ensuite être filtrés sur ces termes. Les filtres sont disponibles dans la médiathèque et dans chaque fenêtre modale de sélection de média.

A la différence d’autres extensions similaires, F4 Media Taxonomies est 100 % gratuit !

Utilisation

Consultez la FAQ pour savoir comment activer les catégories, les étiquettes et les taxonomies personnalisées.

Aperçu des fonctionnalités

  • Utilisez n’importe quelle taxonomie (native ou personnalisée)
  • Assigner un ou plusieurs termes à un fichier joint dans la médiathèque/modale d’insertion
  • Assigner des termes à plusieurs fichiers joints à la fois dans la médiathèque
  • Filtrer les fichiers joints par termes dans la médiathèque/modale d’insertion
  • Facile à utiliser
  • Léger et optimisé
  • 100 % gratuit !

Captures d’écran

  • Filter by taxonomies in media library list
  • Filter by taxonomies in media library grid
  • Assign one or more taxonomies to an attachment
  • Hierarchical dropdown menu for taxonomies assignment
  • Filter by taxonomies in media insert overlay

Installation

  1. Upload the plugin files to the /wp-content/plugins/f4-media-taxonomies directory, or install the plugin through the WordPress plugins screen directly
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Consultez la FAQ pour savoir comment activer les catégories, les étiquettes et les taxonomies personnalisées
  4. All taxonomies that are assigned to the attachment post-type are automatically enabled

FAQ

Comment activer les catégories

The built-in taxonomy category can be enabled with this snippet. Just put it into your functions.php:

add_action('init', function() {
    register_taxonomy_for_object_type('category', 'attachment');
});

Comment activer les étiquettes

The built-in taxonomy post_tag can be enabled with this snippet. Just put it into your functions.php:

add_action('init', function() {
    register_taxonomy_for_object_type('post_tag', 'attachment');
});

How to enable custom taxonomies

There are two ways to enable custom taxonomies for attachments:

Nouvelle taxonomie :

If the taxonomy does not exist yet and you want to create a new one, you have to set the object_type in the register_taxonomy() function to attachment (see WordPress codex).

add_action('init', function() {
    register_taxonomy(
        'media-category',
        'attachment'
    );
});

Taxonomie existante :

If the taxonomy is already registered, you can assign it with this snippet. Just put it into your functions.php and change media-category to your taxonomy:

add_action('init', function() {
    register_taxonomy_for_object_type('media-category', 'attachment');
});

The filters do not appear in the media overlay

For a better performance, we only include the scripts and files when they are needed. Some plugins can cause a problem with this functionality.
For this case we offer a hook, which allows you to enable the filter for special conditions. If this hook returns true, the filter is enabled for the current site.

add_filter('F4/MT/Core/has_filter', function() {
    return true;
});

Can I enable taxonomies directly in the backend?

No. We simply use the taxonomies that are registered in the code. Maybe in the future, but we want to keep this plugin as lightweight and simple as possible.

Est-ce réellement gratuit ?

Oui, absolument !

Avis

Ace

17 avril 2023
Good clean solution to tagging uploaded files.
23 août 2022
It took me awhile to find this but so glad I did. I was just about to start coding it myself. It uses the *built-in* categories!!! No extra clutter, neat, simple, just waht I was looking for.
27 janvier 2022
Genau das, was ich gesucht habe. Ist schon extrem zeitsparend, wenn man nicht jedes Bild einzeln editieren muss, nur um eine Kategorie oder ein Schlagwort zu ergänzen. Damit füllt man ganz einfach die Lücken in den Daten, ohne vor dem Zeitaufwand zu kapitulieren. Vielen Dank.
23 janvier 2022
Just installed this plugin on one of my sites. Does everything I expected and the source code also looks clean and lean! 5 Stars, thank you Faktor 4!!
15 octobre 2021
A simple plugin that works nicely. It’s a good alternative (maybe better) to custom directories for media files in WP.
22 avril 2020
thank you for building that functionality in a small and efficient plugin, without all those "fancy" stuff that all the others in that field offer. great for developers 🙂
Lire les 11 avis

Contributeurs/contributrices & développeurs/développeuses

« F4 Media Taxonomies » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.

Contributeurs

“F4 Media Taxonomies” a été traduit dans 4 locales. Remerciez l’équipe de traduction pour ses contributions.

Traduisez « F4 Media Taxonomies » dans votre langue.

Le développement vous intéresse ?

Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.

Journal

1.1.4

  • Remove double array key
  • Support WordPress 6.5

1.1.3

  • Support WordPress 6.1

1.1.2

  • Update www.f4dev.ch links

1.1.1

  • Fix bulk action and taxonomy filter dropdowns
  • Improve the grid view performance

1.1.0

  • Terms are now lazy loaded with ajax in assignment select
  • Term assignment styles and scripts optimized
  • Term assignment sorting fixed
  • Update selectize to verison 0.13.5

1.0.17

  • Support WordPress 6.0

1.0.16

  • Correctly update post term count (thanks to @nonverbla for the hint)
  • Support WordPress 5.9

1.0.15

  • Support WordPress 5.8

1.0.14

  • Support WordPress 5.7

1.0.13

  • Fix taxonomy select for new jQuery version
  • Support WordPress 5.6

1.0.12

  • Fix behaviour after taxonomy selection

1.0.11

  • Support WordPress 5.5

1.0.10

  • Support WordPress 5.4

1.0.9

  • Fix bottom bulk action button in media list

1.0.8

  • Add CMB2 plugin support

1.0.7

  • WordPress 5.3 compatibility fixes
  • Optimized dropdown width in media modal

1.0.6

  • Update deprecated get_terms function

1.0.5

  • Few PHP and JS code optimisations

1.0.4

  • Fix customizer error
  • Fix missing dropdowns in media overlay

1.0.3

  • Fix filter error

1.0.2

  • Show only taxonomies with show_ui true

1.0.1

  • Version upgrade for correct repository infos

1.0.0

  • Initial stable release