开发者 | 3dolab |
---|---|
更新时间 | 2016年2月5日 04:14 |
捐献地址: | 去捐款 |
PHP版本: | 2.8 及以上 |
WordPress版本: | 4.4.2 |
[slideshow]
(with optional post_id
, custom
, exclude
, exclude
, and auto
parameters)<?php if (class_exists('CMBSLD_Gallery')) { $CMBSLD_Gallery = new CMBSLD_Gallery(); $CMBSLD_Gallery -> slideshow($output = true, $post_id, $exclude, $include, $custom, $width, $height, $thumbs, $caption, $auto, $nolink, $slug, $limit, $size); } ?>
and the required $post_id
or $custom
parameters accordingly specifiedcombo-slideshow
foldercombo-slideshow
folder to the /wp-content/plugins/
directory[slideshow post_id="X" exclude="" caption="on/off"]
to embed a slideshow with the images of a post into your posts/pages or use [slideshow custom=1]
to embed a slideshow with your custom added slides or <?php if (class_exists('CMBSLD_Gallery')) { $CMBSLD_Gallery = new CMBSLD_Gallery(); $CMBSLD_Gallery -> slideshow($output = true, $post_id = null); }; ?>
into your WordPress themeYes, you can: summon each instance anywhere with the appropriate shortcode or manual function.
Enable it in the plugin settings and make sure that a post thumbnail is set in each post. Auto-insertion features may not work if standard functions are not supported by the theme in use or plugins such as e-commerce, etc...
First create a new Slideshow and add images to the media gallery. Use the shortcode or the manual function with the custom
parameter set accordingly.
Please note that images have to be uploaded from this screen, in order to be associated as "attachments" of the slideshow object / custom post type.
The Content Editor is actually useless except for the Add Media button, or if you ever like to somehow extract it (e.g. slideshow of slideshows post type).
Set your default captions to off; for any slideshow you put on your page use [slideshow caption="on"]
You're most likely not running PHP5. Talk to your host to upgrade or switch your hosting provider. PHP5 is eleventy years old.
Not as easy as it used to be! Go into the Media Library. Choose an image you want to exclude and click on it and notice your address bar: "/wp-admin/media.php?action=edit&attachment_id=353". Therefore, [slideshow exclude=353]
Make sure you have at least 6 thumbnails for that to work properly. Otherwise thumbnails are probably not necessary.
In /views/default/gallery.php find this line: slideshow.letterbox = "#000"; Change #000 to #FFF for white, or any other hex color code.
First of all disable the built-in width & height crop adjustment in the settings, and then simply apply the "width:100%" rule in your stylesheet using both the ".ngslideshow.nivoSlider" classes: it will override the default fixed width