Fresh News - Blog Design, Wordpress, Blogger, and Web Development

Magznetwork Fresh News aggregate our favorite blogs to watch our favorite topics about blog design, wordpress themes, and blogger templates.

WordPress tip: Create a PDF viewer shortcode

Filed Under Object, Uncategorized, shortcode

The first step is to paste the following code into your functions.php file: function pdflink($attr, $content) { return ‘ ‘.$content.’ ‘; } add_shortcode(‘pdf’, ‘pdflink’); Once you saved the file, you’ll be able to use the shortcode on your posts and page.

Discussion

Go to our Support Forum to discuss this post and share your ideas.