How to Embed PDF, Spreadsheet & Word File in WordPress Post

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)
Upload PDF Example

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.

WordPress Black Book

Do you have any questions about this method above?

Did you know that we offer services online?

Disclosure: Some of the links in this article are affiliate links and we may earn a small commission if you make a purchase, which helps us to keep delivering quality content to you. Here is our disclosure policy.

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.

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here
Captcha verification failed!
CAPTCHA user score failed. Please contact us!

spot_img

Related Articles

Why WordPress Is The Best CMS? (And, Possible Alternatives)

Why WordPress is the best CMS? Having a website has become a necessity for both individuals and businesses. Content Management...
Read More
When optimizing the speed of your WordPress site, you might come across a performance metric known as Time to First...
Are you dealing with a broken WordPress site and don't know what to do? If your website is showing a...