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):
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): attachment_page_mgmt.zip (version 0.1 is for WP 2.2 and 2.3)
Installation:
- Extract the archive & upload to your /wp_content/plugins/ directory
- 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): attachment_page_mgmt.zip (3.84 KB)
About this entry
You’re currently reading “Attachment Page Mgmt Plugin,” an entry on Moggylaceous
- Published:
- 07.21.07 / 10pm
- Category:
- Wordpress
- Tags:
- attachments, plugin, wordpress
- Related Posts:
- Print:
- Print this entry



No comments
Jump to comment form | comments rss [?] | trackback uri [?]