开发者 | iamfriendly |
---|---|
更新时间 | 2015年4月21日 07:13 |
PHP版本: | 3.0 及以上 |
WordPress版本: | 4.0.0 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
The shortcode is [ responsiveslides ] and it has quite a few parameters (the same one as the jQuery plugin.). You will need to have already uploaded your images (into your media library for example) and you'll need to know the URL of those images (this will change in the future, I promise). So, as an example: [ responsiveslides image_1="http://lorempixel.com/600/300" image_2="http://lorempixel.com/600/300/sports" auto="true" pager="true" / ] (without the spaces) You can have up to 10 images at the moment. The other params the shortcdoe takes (and their defaults) are: 'auto' => 'false', 'speed' => '700', 'timeout' => '4000', 'pager' => 'false', 'nav' => 'true', 'random' => 'false', 'pause' => 'false', 'prevText' => 'Previous', 'nextText' => 'Next', 'maxwidth' => '', 'namespace' => 'shortcode_rslides'
Drag the widget into a sidebar and select the posts category you wish to use and the number of images to show. It uses the 'featured image' of your post.