May 012013

Last Updated: December 04, 2015

How to embed pdf into WordPress tutorial illustrates how to embed pdf and other files into WordPress post or pages.

Latest News: I have removed a broken link.

I am going to share with you 3 methods you can use to achieve this.

Here are 3 methods you can use straight away:

1 ) There are three codes that Google Doc Viewer provides when you use online. (Note: This URL will give you a 404 error message. However you can use the following and then type the pdf URL file you wish to view and it works.)

I am going to create my code using Google’s Search Optimization Starter Guide pdf file as showing below.

Three Codes Generated:

1 – Paste this link into email or IM:

2 – Or, paste this HTML tag into your blog or website for a link to the viewer:

<a href=””>View</a>

3 – For an embedded viewer, use this HTML tag instead:

<iframe src=”” width=”600″ height=”780″ style=”border: none;”></iframe>

Important: Simply add option 3- above to your page or post and it will embed the pdf file. Remember to adjust the width and height to suite your needs.

2 ) You can add a function to your functions.php file. See the following instructions Google Docs PDF Viewer WordPress

3 ) You can also use a plugin WordPress Doc Embeder which is helping many users.

As you can see from the list above you have a few options.

I hope this has helped you.


I have been working in IT since 1999 and I enjoy the challenges it brings me. I love developing websites with WordPress. I spend a lot of time helping out in forums. I have been writing tutorials since 2011. Now I am learning how to manage my own VPS "Virtual Private Server.

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>



14 − 6 =