Difference between revisions of "How to create a slider from gallery images"

From WikiName
Jump to: navigation, search
(Created page with "Gallery slider short code introduced in v7.2.3 makes the custom slider short code introduced in v7.2.1 and the regular slider shortcode that was present from a long time. If y...")
 
Line 1: Line 1:
 
Gallery slider short code introduced in v7.2.3 makes the custom slider short code introduced in v7.2.1 and the regular slider shortcode that was present from a long time.
 
Gallery slider short code introduced in v7.2.3 makes the custom slider short code introduced in v7.2.1 and the regular slider shortcode that was present from a long time.
 +
 
If you have to insert a slider in post or a page, this is the way to go.
 
If you have to insert a slider in post or a page, this is the way to go.
  
 
[gallery_slider ids="1780,1771,1766" width="640" height="380"]
 
[gallery_slider ids="1780,1771,1766" width="640" height="380"]
  
The above short code create a slider with slides of width 640px and height 380px using the images with id's 1780,1771,1766 from your media library. Unlike the slider shortcodes before or the custom slider  you don't have to crop, or resize images before uploading. Resizing and cropping is automatically handled for you.
+
The above short code create a slider with slides of width 640px and height 380px using the images with id's 1780,1771,1766 from your media library.  
 +
Unlike the slider shortcodes before or the custom slider  you don't have to crop, or resize images before uploading.  
 +
Resizing and cropping is automatically handled for you.
 
Just note that, wordpress can not upsize a images. If you upload a image smaller than slider dimensions.
 
Just note that, wordpress can not upsize a images. If you upload a image smaller than slider dimensions.
  
 
[[File:Gallery-slider-shortcode.jpg]]
 
[[File:Gallery-slider-shortcode.jpg]]
 +
 +
[[File:How to insert a slide in gallery slider shortcode.jpg]]
 +
 +
Target link field is added by Swift theme, and isn't a standard WP option.
 +
 +
===How to get the ID's of images?===
 +
====Cumbersome way====
 +
One way is to hover over the image in wordpress media library page or media uploader, and get the ID from the status bar of your browser.
 +
 +
1. Select the image.
 +
2. Hover over edit or delete image link
 +
3. In the status bar you will find the ID.
 +
[[File:Selecting-slides-for-gallery-sldier.jpg]]
 +
 +
 +
The

Revision as of 19:47, 25 December 2014

Gallery slider short code introduced in v7.2.3 makes the custom slider short code introduced in v7.2.1 and the regular slider shortcode that was present from a long time.

If you have to insert a slider in post or a page, this is the way to go.

[gallery_slider ids="1780,1771,1766" width="640" height="380"]

The above short code create a slider with slides of width 640px and height 380px using the images with id's 1780,1771,1766 from your media library. Unlike the slider shortcodes before or the custom slider you don't have to crop, or resize images before uploading. Resizing and cropping is automatically handled for you. Just note that, wordpress can not upsize a images. If you upload a image smaller than slider dimensions.

Gallery-slider-shortcode.jpg

How to insert a slide in gallery slider shortcode.jpg

Target link field is added by Swift theme, and isn't a standard WP option.

How to get the ID's of images?

Cumbersome way

One way is to hover over the image in wordpress media library page or media uploader, and get the ID from the status bar of your browser.

1. Select the image. 2. Hover over edit or delete image link 3. In the status bar you will find the ID. Selecting-slides-for-gallery-sldier.jpg


The