Lesson 17Adding Documents

It's often easier to make information available to visitors in the form of documents rather than trying to re-create the information on a web page. Plus, they have something to “take away” with all your contact information on it as well. So easily uploading and linking to documents is important, and WordPress enables you to do this.

Uploading and Inserting a Document

A common type of document on a website is a press release. I've created a Category for Island Travel press releases and added a Post about a new destination being added to the travel roster, so now I'm going to add the PDF of the press release.

Linking Text to Documents

I begin by placing my cursor where I want the link to appear in my text and then clicking Add Media.

In this case, I'm adding the PDF from my computer, so I use the Upload Files tab of the Media Uploader window. When the upload is complete, my document is highlighted in the Media Library, and the Attachment Details are on the right side, as shown in Figure 17.1.

image

Figure 17.1

The key to inserting documents is to remember that WordPress uses the Title as the text linked to the document.

Now by default the Title is the name of the file, but even if you have a good descriptive filename, it still needs to be altered to fit the context of your content. You could, of course, change the link text later in the Content Editor, ...

Get WordPress 24-Hour Trainer, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.