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

3 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?

  2. Mark
    February 19, 2009 at 20:44

    Hi,

    This is highly incompatible with Wordpress 2.7.1.

    Just a note for those who may try it: Any posts updated with the plugin active will be permanently broken (not show at all and not recoverable by any action in the Dashboard including deactivating the plugin / changing the posts category again etc).

    Be great if this is updated at some point.

  3. jason
    February 20, 2009 at 08:13

    Mark, Thanks for testing it and the heads up. Newer versions of WP (2.5+) have some significant changes that can affect this plugin. When I get time, I’ll look into what can be done. Thanks again!

Leave a comment

OpenID Login

Standard Login

Options:

Size

Colors