Li essa dica pelo twitter, @pinceladasdaweb, que citou o Snipplr e que por sua vez citou o que entendo ser a fonte original WPRecipes.
Link abaixo para o post do Snipplrlink http://snipplr.com/view.php?codeview&id=35682
------------ WPRecipes -------------------
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. Here is the syntax:
[pdf href="http://yoursite.com/linktoyour/file.pdf"]View PDF[/pdf]-----------------------------------
Nenhum comentário:
Postar um comentário