开发者 |
pathawks
dirtysuds |
---|---|
更新时间 | 2015年3月20日 09:09 |
捐献地址: | 去捐款 |
PHP版本: | 2.9 及以上 |
WordPress版本: | 3.1.2 |
[embed]http://example.com/file.pdf[/embed]
and the plugin will embed the PDF into the page using the Google Docs Viewer embed code.
The url must end with .pdf
Supported attributes in the embed tag are class
id
title
height
and width
dirtysuds-embed-pdf
to the /wp-content/plugins/
directory[embed]
shortcode, the plugin will embed the document using the Google Docs viewerIf you want to change the default size of media embedded in a post, that can be done in the admin interface under Settings ⇒ Media Settings ⇒ Embeds
If you'd just like to change the size of one instance, you can use the standard attributes of the WordPress embed shortcode.
[embed width="400" height="600"]http://example.com/document.pdf[/embed]
Great! I'd love to hear from you. plugins@dirtysuds.com
gdoc
shortcode for compatibility with older pluginsclass
and id
attributes (Thanks, Robert)