| 开发者 |
ramiy
GenerateWP |
|---|---|
| 更新时间 | 2019年7月6日 17:59 |
| PHP版本: | 5.2.4 及以上 |
| WordPress版本: | 5.2 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[generatewp id=""] shortcode with the following attributes:
github, geonyx, kimono, paradise, soft, zenophilia, md (material design), luminous_dark (dark theme), luminous_light (light theme). Default is 'github'.php, html, css, javascript. Default 'php'.With this plugin you can use the URL to embed snippets. Just paste the snippet URL into your post editor:
https://generatewp.com/snippet/0md9rdy/
Since WordPress 4.2, you can double click the embedded item to set max width and max height. It will add the WordPress [embed] shortcode:
[embed width="600" height="400"]https://generatewp.com/snippet/0md9rdy/[/embed]
Note: Doing it the WordPress way, using the [embed] shortcode, is backwards and forward compatible, and it works with all the themes.
For advanced customization, use [generatewp id=""] shortcode with the following attributes:
github, geonyx, kimono, paradise, soft, zenophilia, md (material design), luminous_dark (dark theme), luminous_light (light theme). Default is 'github'.php, html, css, javascript. Default 'php'.