{"id":33962,"date":"2019-03-04T10:21:55","date_gmt":"2019-03-04T10:21:55","guid":{"rendered":"http:\/\/getshortcodes.com\/?post_type=docs&#038;p=33962"},"modified":"2022-11-29T07:53:36","modified_gmt":"2022-11-29T07:53:36","slug":"slider","status":"publish","type":"docs","link":"https:\/\/getshortcodes.com\/docs\/slider\/","title":{"rendered":"Slider"},"content":{"rendered":"\n<p class=\"has-black-color has-yellow-background-color has-text-color has-background\">This shortcode is deprecated. Consider using <a href=\"\/docs\/image-carousel\/\">Image Carousel<\/a> instead.<\/p>\n\n\n<p class=\"h2\">Table of contents<\/p>\n\n<ol><li><a href=\"#description\">Description<\/a><\/li><li><a href=\"#options\">Options<\/a><\/li><li><a href=\"#related-articles\">Related articles<\/a><\/li><\/ol><\/li><\/ol>\n\n\n<h2 class=\"wp-block-heading\" id=\"description\">Description<\/h2>\n\n\n\n<p>This shortcode allows you to create beautiful sliders.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"options\">Options<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><th>Option name<\/th><th>Possible values<\/th><th>Default value<\/th><\/tr><tr><td><strong>source<\/strong><br>Choose images source. You can use images from Media library or retrieve it from posts (thumbnails) posted under specified blog category. You can also pick any custom taxonomy<\/td><td>media: 1,2,3 (Media file IDs)<br>posts: 1,2,3 (Post IDs)<br>posts: recent (Recent posts)<br>taxonomy: book\/3,5 (Taxonomy term slug \/ term IDs)<\/td><td>none<\/td><\/tr><tr><td><strong>limit<\/strong><br>Maximum number of image source posts (for recent posts, category and custom taxonomy)<\/td><td>Number from -1 to 100<\/td><td>20<\/td><\/tr><tr><td><strong>link<\/strong><br>Select which links will be used for images in this gallery<\/td><td>none (None)<br>image (Full-size image)<br>lightbox (Lightbox)<br>custom (Slide link (added in media editor))<br>attachment (Attachment page)<br>post (Post permalink)<\/td><td>none<\/td><\/tr><tr><td><strong>target<\/strong><br>Open links in<\/td><td>self (Open in same tab)<br>blank (Open in new tab)<\/td><td>self<\/td><\/tr><tr><td><strong>width<\/strong><br>Slider width (in pixels)<\/td><td>Number from 200 to 1600<\/td><td>600<\/td><\/tr><tr><td><strong>height<\/strong><br>Slider height (in pixels)<\/td><td>Number from 200 to 1600<\/td><td>300<\/td><\/tr><tr><td><strong>responsive<\/strong><br>Ignore width and height parameters and make slider responsive<\/td><td>yes or no<\/td><td>yes<\/td><\/tr><tr><td><strong>title<\/strong><br>Display slide titles<\/td><td>yes or no<\/td><td>yes<\/td><\/tr><tr><td><strong>centered<\/strong><br>Is slider centered on the page<\/td><td>yes or no<\/td><td>yes<\/td><\/tr><tr><td><strong>arrows<\/strong><br>Show left and right arrows<\/td><td>yes or no<\/td><td>yes<\/td><\/tr><tr><td><strong>pages<\/strong><br>Show pagination<\/td><td>yes or no<\/td><td>yes<\/td><\/tr><tr><td><strong>mousewheel<\/strong><br>Allow to change slides with mouse wheel<\/td><td>yes or no<\/td><td>yes<\/td><\/tr><tr><td><strong>autoplay<\/strong><br>Choose interval between slide animations. Set to 0 to disable autoplay<\/td><td>Number from 0 to 100000<\/td><td>5000<\/td><\/tr><tr><td><strong>speed<\/strong><br>Specify animation speed<\/td><td>Number from 0 to 20000<\/td><td>600<\/td><\/tr><tr><td><strong>class<\/strong><br>Additional CSS class name(s) separated by space(s)<\/td><td>CSS class name(s) separated by space(s)<\/td><td><em>\u2013 none \u2013<\/em><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"has-small-font-size\">Photos by <a rel=\"noreferrer noopener\" href=\"https:\/\/unsplash.com\/@visualworld\" target=\"_blank\">Matt Palmer<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"related-articles\">Related articles<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"\/docs\/custom-links-in-image-carousel-and-custom-gallery-shortcodes\/\">How to add custom links to slides<\/a><\/li>\n<\/ul>\n","protected":false},"featured_media":36657,"template":"","docs_category":[21],"class_list":["post-33962","docs","type-docs","status-publish","has-post-thumbnail","hentry","docs_category-shortcodes"],"_links":{"self":[{"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/docs\/33962","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/types\/docs"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/media\/36657"}],"wp:attachment":[{"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/media?parent=33962"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/getshortcodes.com\/api\/wp\/v2\/docs_category?post=33962"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}