Archive for May 17th, 2006

Wordpress 2.0 Plugin: AutoLink Attachment

As of Wordpress 2.1, it appears that this plugin is relegated to the dustbin. I have no plans to continue developing or supporting the script. The most recent version of Wordpress includes full-featured tools to upload and link to attached documents.

In order to simplify the process of associating Wordpress post attachments with posts, I wrote a quick plugin that will automate the linking process. The plugin lists ALL post attachments.

If you don’t want them all listed, right now you are out of luck. I provide a CSS class called “dd_attachments” and each attachment link is encased in a span element. By making the span element display:block, you can create a list-like appearance.

This plugin relies on new functionality built into Wordpress 2.0 and the functions it uses are largely undocumented. For some basic information on how to use attachments in Wordpress 2.0 visit the Wordpress Codex here.

Version 1.01: I’ve modified the plugin to use an unordered list rather than span elements. The more semantically correct code will behave better in RSS readers where your CSS styles are not available. Also, the attachments follow the main post content now. This works better for most users.

Version 1.02 Added an embedded stylesheet to add class with no effort! Also thanks to TJWood’s suggestions, the code is cleaner and faster. Visit TJ’s site here.

Download the latest version of autolink attachment plugin for Wordpress 2.0

Autolink Attachment with Description

This version is a fork of Version 1.02 that adds the attachment description from each attachment, if there is one. If no description is given, it functions exactly like version 1.02. There’s a new CSS hook on the description paragraph named “dd_description”. Hopefully, this will help someone out there in cyberspace.

Download the latest version of autolink attachment plugin with description for Wordpress 2.0

12 comments May 17th, 2006


About Harvey Ramer

CSS Web design, e-commerce Web design, and internet marketing issues from the desk of Harvey A. Ramer at Design Delineations.

View Harvey Ramer's profile on LinkedIn

Reader/Customer Feedback

Harvey Recommends

Accolades

Design Notes: A CSS Web Designer’s Blog at Blogged

Calendar

May 2006
M T W T F S S
« Apr   Jun »
1234567
891011121314
15161718192021
22232425262728
293031  

Posts by Month

Posts by Category