How to create a shortcode for embedding pdf in iframe?

In this tutorial we’ll learn how to create a shortcode for embedding pdf in iframe. We can use a google docs pdf viewer to embed a pdf on a wordpress site. Here is the function which will enable you to achieve that. Copy the following lines of code at the end of your functions.php. function …

How to create a shortcode for embedding pdf in iframe? Read More »