WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!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

Include the category taxonomy to your media files. No configuration needed... just Plug&Play!

  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! :)
?>

Requires: 2.9 or higher
Compatible up to: 3.0-beta1
Last Updated: 2010-5-1
Downloads: 2,810

Ratings

3 stars
3.3 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

50,2,1 100,2,2 100,1,1
0,1,0
100,2,2
0,1,0
0,1,0
0,2,0
0,1,0
0,1,0
0,1,0