A lot of people question about how to add/embed Excel, Word, PDFs, Powerpoint and such other stuff in WordPress. I used to tell them custom solutions to do this stuff. Most of the beginners find it hard to add the shortcodes inside the functions.php so, I decided to share a plugin with you people which make your task easier.
Google Docs Embedder Plugin
The plugin is called Google Doc Embedder. It is a very handy plugin with a lot of features. Let me make one thing very clear, that this plugin uses Google Docs Embedder to embed your locally hosted files. You do not need to have a Google account for it.
It works like this–> You upload your file into WordPress and then copy the link of your uploaded file. After that you paste the link in your Post write panel in a shorcode like [gview file="http://link/to-your-file"] and the job is done.
Google Docs Embedder Features
GDE plugin allows you to embed a lot of extensions, you can find the list below
In the search Box write “Google Doc Embedder” the plugin will show up below
Install it and at the next page Activate it when WordPress asks for its activation
See the Image below if anything confuses you
Configuring the Plugin
Hover on “Settings” Menu and click “GDE Settings“
You Will find two set of options there.
Download Link Options
You can see them in images below
Adding your Document in a Post
Set them as per your requirements and move to write post panel by Hovering on “Posts” & clicking “Add New”
Upload a file just like you upload any image inside your WordPress and Copy its link (If the link doesn’t appear click File URL), for reference see the image below, you should copy the link pointed by an arrow.
Now write the shortcode below inside your post, just put the link you copies in the last step inside the quotes after file=”HERE”