Linking To PDF

My client wants to display PDF files in the post; his website is powered by WordPress, although there are lots of plugins to achieve this task in this current timeframe with the latest WordPress version, I found an easy solution that is right under your nose. This blog post will cover about how to display a PDF, spreadsheet or a word file in a blog post or even a page.

Show PDF

In the example above, I did not have much work at all, to be honest with you. Upload your PDF or document to your “media” dashboard like you would do when uploading an image to a blog post.

Supported Documents:

  • .pdf (Portable Document Format; Adobe Acrobat)
  • .doc, .docx (Microsoft Word Document)
  • .key (Apple Keynote Presentation)
  • .ppt, .pptx, .pps, .ppsx (Microsoft PowerPoint Presentation)
  • .odt (OpenDocument Text Document)
  • .xls, .xlsx (Microsoft Excel Document)

Example:
Upload PDF Example

Let me zoom in more closely for you. Make sure you select “media file” and then save changes. A link to your PDF should have been uploaded inside the post and move the link to where you want it to the post.

closer PDF example

By using this piece of code, you can easily embed PDF files into a page or post for clients so that website visitors can read the PDF document right from the page.

The code will look like a regular link; it just links to the PDF file path we saved.

<a href=”https://wparena.com/wp-content/uploads/2016/08/blackbook.pdf”>WordPress Black Book</a>

Do you have any questions about this method above?

Did you know that we offer services online?

Noor Mustafa Raza

Noor Mustafa Raza

I am a WordPress Developer and Designer, author @WPArena. I am providing Free WordPress consultation and can help you to install WordPress in a secure way to small businesses and bloggers.

Join the Conversation

1 Comment

Leave a comment

Your email address will not be published. Required fields are marked *