Attachment Category Updater Plugin

Yeah, it’s a long name, but it describes this plugin well. The Attachment Category Updater WordPress Plugin automatically updates the categories of your attachment(s).

Normally (at least with WordPress 2.3.2), the categories of post attachments do not get updated when the post categories change. There is also no way to manually make these updates through the admin. The Attachment Category Updater keeps your posts and attachments in sync.

By creating a custom archive template (not included… yet), you can provide easy, categorized access to your attachments. One example would be to display an archive of all your PDF documents.

Features

  • Deletes old category (term) relationships
  • Adds new category (term) relationships
  • Automatically updates category (ter) relationships on post save

To Do

  • Provide example templates.

Installation

  1. Upload ju-attachment-category-updater.php to your WordPress plugins directory. (/wp-content/plugins)
  2. Activate plugin.

Compatibility

Tested on WordPress 2.3.2.

Download

You can download the Attachment Category Updater WordPress plugin here:
attachment-category-updater.zip

1 Trackbacks/Pingbacks

  1. Attachment Category Updater | Experiments & Expressions

1 Comments

  1. Manne
    June 23, 2008 at 05:49

    Hello and thanks for a neat little plugin. I’m trying to extend it to also update the author when this is changed for the parent post. I tried using something like this:

    $query = “UPDATE {$wpdb->prefix}posts SET post_author = $post->post_author WHERE ID = $attachment->ID”;

    Can’t get it to work. Any ideas?

Leave a comment

OpenID Login

Standard Login

Options:

Size

Colors