Adding PDF Links to WordPress Posts and Pages
Posted by Aaron Keenan on February, 8th 2010Linking to a pdf can, in many cases, be a very convenient way to add content to your site. We often find that clients will want to add menus, brochures, instructions etc. that may be most effectively viewed, shared or printed in pdf format. Uploading a pdf and adding a link in your site’s content so that visitors can download this document is all possible through the standard WordPress admin options.
When you are editing a page or post in the WordPress admin, there are a group of four options above the main edit window labelled ‘Upload/Insert’. The first is for uploading and managing images, the second for video, the third for audio and the fourth for other media (text files, pdfs etc.). If you select the fourth option (named ‘Add Media’) you will then open a pop up window where you can upload the pdf. Once the file has finished uploading, you will have a choice of options. Selecting ‘Insert into Post’ (as you would with an image) will not work here – it only inserts the document’s title into the body content of the page or post. To insert a link to the pdf, rather, you can first select the ‘File URL’ option. Doing so will cause the file’s link location to be displayed in the ‘Link URL’ field. You can then copy this url to your clipboard and exit the pop up box.
Next enter the text that you will use as the selectable link text in the content of the page or post. Click and drag over this text to select it. Once you have selected the text, the link button will become accessible. You can click this to bring up another pop up box where you are able to paste the url for the pdf that you had previously copied. You will finally need to click ‘Insert’ to add the link.
Related Posts
- Image Editing in WordPress
The release of version 2.9 provided WordPress users with some very useful additional image editing capabilities. In the following article we will look at some of the new options for reversing, rotating, cropping and resizing images.When you are editing a page or post, a row of tools for uploading additional files is available just above [...]
- add_theme_support() – a Function to Change the Future of WordPress Theme Development
One relatively new function that could be making a big difference to the future of WordPress theme development is add_theme_support(). The function was introduced late last year with the release of WordPress 2.9. The major current use for add_theme_support() is for conveniently setting thumbnail images for posts and pages. When WordPress 3.0 is released (scheduled [...]
- Finding Post and Category IDs in WordPress
To take full advantage of all the WordPress template tags and functions it is often required to use post IDs and category IDs. These values can be found conveniently in the WordPress admin area, without needing to refer to the database.Finding a WordPress Post IDTo find the ID of a particular post or page in [...]
- Using Short Codes to Easily Format WordPress Page Content
Custom short codes can be extremely useful towards setting up a conveniently manageable WordPress theme design. Since WordPress 2.5, there has been in-built support for creating custom short codes using the add_shortcode() function.A Basic add_shortcode() ExampleIn the example below I have used the short code [go] (square brackets are always included as part of a [...]
- Embedding YouTube Videos, Flickr Images and more in WordPress 2.9
WordPress 2.9 has greatly increased the ease of embedding videos, images and other types of content. You are now able to display videos on your site from, for example, YouTube simply by entering the url of the YouTube video as plain text in a WordPress page or post. It is also possible to similarly embed [...]
Find out more about Juno style Wordpress web design
Find out more about Juno style Magento web design
Return to web design news.




Leave a Comment