Attachment Page Mgmt Plugin

In my exploration of WordPress, one of the most underdeveloped parts (in my opinion) is file uploads. Without going into too much detail, I noticed that each uploaded attachment also has its own attachment page which can accept comments & pings. What I couldn’t find was a simple way to enable/disable these options for attachment pages, however. Sure, I could manually go into the database, but I thought I’d take a stab at creating my first WordPress plugin instead.

Here’s a screenshot (taken from the ‘Manage -> Attachment Pages’ tab):

attachpagemgmt1.jpg

By default, the paging system shows 30 per page, but this can be changed easily on line 46 by editing the $max_per_page variable.

According to the database schema, comments can be set to ‘open’, ‘closed’, or ‘registered-only’ so those are the options available. Pings, on the other hand, only allow ‘open’ or ‘closed’.

Finally, passwords on attachment pages don’t actually block the attachment from being shown, they just seem to password protect the comments.

Download link (v0.1): (REMOVED – No longer supported) (version 0.1 is for WP 2.2 and 2.3)

Installation:

  1. Extract the archive & upload to your /wp_content/plugins/ directory
  2. Goto the Plugins tab & activate the ‘Attachment Page Mgmt’ plugin

Update (6/6/2008)
Version 0.2 has been updated for WordPress 2.5 (for pre-2.5 support, use the download link above)

Download link (v0.2): (REMOVED – No longer supported)

No Comments

Comments are closed.

Archives