This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

WP Media Category

Description

Include the category taxonomy to your media files.

No configuration needed: just Plug&Play!

This is a functional beta release! 🙂

Screenshots

  • The category select field is inserted at the end of the "Edit media" page
  • When you select a category that has childs a new select input will appear

Installation

  1. Upload the extracted plugin folder and contained files to your /wp-content/plugins/ directory using FTP
  2. Activate the plugin through the ‘Plugins‘ menu in WordPress
  3. Go to your Media Library and edit one file or upload a new one

Check the screenshots tab to see where the new field’ll appear.

Usage

You can list all the media files from a category using the get_posts() WordPress function on your theme files.

Here’s an example of usage:

<?php
// Create an array with all medias from category #2 
$args = array(
    'post_type' => 'attachment', // search only attachments (media files)
    'cat' => '2', // from category #2
    'numberposts' => -1 // unlimited results
);
$medias = get_posts($args);
// Now you can loop through $medias array and list the files! :)
?>

FAQ

What taxonomy this plugin use?

This plugin use the category taxonomy

How many categories a media can belongs to?

Until now, the media can be added to only one category.

On future versions i’ll add support to more than one category.

Contributors & Developers

“WP Media Category” is open source software. The following people have contributed to this plugin.

Contributors

Translate “WP Media Category” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

0.2.1b

  • jQuery 1.4.2 include fix

0.2b

  • Beta release

0.1.2 & 0.1.3

  • jQuery 1.4.2 addition

0.1.1

  • Small bugfix

0.1

  • First release
  • Translations: en-US & pt-BR