Title: Parameterize, initialize via shortcode / dynamic loading
Last modified: June 6, 2017

---

# Parameterize, initialize via shortcode / dynamic loading

 *  Resolved [calte1980](https://wordpress.org/support/users/calte1980/)
 * (@calte1980)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/parameterize-initialize-via-shortcode-dynamic-loading/)
 * Last week a friendly service worker of Master Slider told me, we can dynamic 
   parameterize a slider with pictures, stored in WP Media Libary, without generize
   a gallery with static pictures, with the followig shortcode:
 * [gallery masterslider="true" ids="33, 34, 35"]
    (Need this for dynamic loading
   the pictures via info from DB)
 * But this one looks now not so nice as the static versions I used before in other
   subpages (It’s not even a real slider).
 * What we need now is a shortcode statement like the one above with the picture
   IDs, but additional with a id parameter for a specific masterslider layout, which
   I customized before in the WP Backend, but where I have no static pictures inside,
   only for the visual apperance.
 * For example:
    [masterslider id=”5″ picture ids=”33, 34, 35″]
 * Is there any way to achieve this?

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [averta support](https://wordpress.org/support/users/averta_support/)
 * (@averta_support)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/parameterize-initialize-via-shortcode-dynamic-loading/#post-9217163)
 * Hi,
 * Thank you for choosing Master Slider.
 * You can use the below code:
 *     ```
       $args = array(
            'id'                      => '1',     // slider id
            'uid'                     => '',      // an unique and temporary id
            'class'                   => '',      // a class that adds to slider wrapper
            'margin'                  => 0,
            'inline_style'            => '',
            'bg_color'                => '',
            'bg_image'                => '',
            'slider_type'             => 'custom',   // values: custom, flickr, facebook, post
            'width'                   => 300,     // base width of slides. It helps the slider to resize in correct ratio.
            'height'                  => 150,     // base height of slides, It helps the slider to resize in correct ratio.
            'min_height'              => 0,
            'start'                   => 1,
            'space'                   => 0,
            'grab_cursor'             => 'true',  // Whether the slider uses grab mouse cursor
            'swipe'                   => 'true',  // Whether the drag/swipe navigation is enabled
            'wheel'                   => 'false', // Enables mouse scroll wheel navigation
            'mouse'                   => 'true',  // Whether the user can use mouse drag navigation
            'keyboard'                => 'false', // Whether the user can use keyboard navigation
            'crop'                    => 'false', // Automatically crop slide images?
            'autoplay'                => 'false', // Enables the autoplay slideshow
            'loop'                    => 'false', //
            'shuffle'                 => 'false', // Enables the shuffle slide order
            'preload'                 =>  0,
            'wrapper_width'           => '',
            'wrapper_width_unit'      => 'px',
            'fullwidth'               => 'false', // It enables the slider to adapt width to its parent element
            'fullheight'              => 'false', // It enables the slider to adapt height to its parent element
            'autofill'                => 'false', // It enables the slider to adapt width and height to its parent element
            'layout'                  => 'fillwidth',
            'fullscreen_margin'       => 0,
            'height_limit'            => 'false', // It force the slide to use max height value as its base specified height value.
            'auto_height'             => 'false',
            'smooth_height'           => 'true',
            'end_pause'               => 'false',
            'over_pause'              => 'false',
            'fill_mode'               => 'fill',
            'autofill_target'         => '',
            'center_controls'         => 'true',
            'layers_mode'             => 'center',// It accepts two values "center" and "full"
            'hide_layers'             => 'false',
            'instant_show_layers'     => 'false',
            'mobile_bg_video'         => 'false',
            'speed'                   => 17,
            'skin'                    => 'ms-skin-default', // slider skin. should be seperated by space - should be started by ms-skin
            'template'                => '',
            'template_class'          => '',
            'direction'               => 'h',
            'view'                    => 'basic',
            'gfonts'                  => '',
            'parallax_mode'           => 'swipe',
            'scroll_parallax'         => 'false',
            'start_on_appear'         => 'false',
            'scroll_parallax_move'    => 30,
            'scroll_parallax_fade'    => 'true',
            'scroll_parallax_bg_move' => 50,
            'use_deep_link'           => 'false',
            'deep_link'               => '',
            'deep_link_type'          => 'path',
            'flickr_key'              => '',
            'flickr_id'               => '',
            'flickr_count'            => 10,
            'flickr_type'             => 'photos',
            'flickr_size'             => 'c',
            'flickr_thumb_size'       => 'q',
            'facebook_username'       => '',
            'facebook_albumid'        => '',
            'facebook_count'          => 10,
            'facebook_type'           => 'album',
            'facebook_size'           => 'orginal',
            'facebook_thumb_size'     => '320',
            'facebook_token'          => '',
            'ps_post_type'            => '',
            'ps_tax_term_ids'         => '',
            'ps_post_count'           => 10,
            'ps_image_from'           => 'auto',
            'ps_order'                => 'DESC',
            'ps_orderby'              => 'menu_order date',
            'ps_posts_not_in'         => '',
            'ps_excerpt_len'          => 100,
            'ps_offset'               => 0,
            'ps_link_slide'           => 'false',
            'ps_link_target'          => '_self',
            'ps_slide_bg'             => '',
            'ps_exclude_no_img'       => 'false',
            'arrows'                  => 'true',   // display arrows?
            'arrows_autohide'         => 'true',   // auto hide arrows?
            'arrows_overvideo'        => 'true',   // visible over slide video while playing?
            'arrows_hideunder'        => '',
            'bullets'                 => 'false',  // display bullets?
            'bullets_autohide'        => 'true',   // auto hide bullets?
            'bullets_overvideo'       => 'true',   // visible over slide video while playing?
            'bullets_direction'       => 'h',
            'bullets_align'           => 'bottom',
            'bullets_space'           => 5,
            'bullets_margin'          => '',
            'bullets_hideunder'       => '',
            'thumbs'                  => 'false',  // display thumbnails?
            'thumbs_autohide'         => 'true',   // auto hide thumbs?
            'thumbs_overvideo'        => 'true',   // visible over slide video while playing?
            'thumbs_direction'        => 'h',      // direction of control
            'thumbs_type'             => 'thumbs',
            'thumbs_speed'            => 17,       // scrolling speed. It accepts float values between 0 and 100
            'thumbs_inset'            => 'true',   // insert thumbs inside slider
            'thumbs_align'            => 'bottom',
            'thumbs_margin'           => 0,
            'thumbs_width'            => 100,
            'thumbs_height'           => 80,
            'thumbs_space'            => 5,
            'thumbs_hideunder'        => '',
            'thumbs_fillmode'         => 'fill',
            'thumbs_arrows'           => 'false',
            'thumbs_in_tab'           => 'false',
            'thumbs_hoverchange'      => 'false',
            'scroll'                  => 'false',  // display scrollbar?
            'scroll_autohide'         => 'true',   // auto hide scroll?
            'scroll_overvideo'        => 'true',   // visible over slide video while playing?
            'scroll_direction'        => 'h',      // direction of control
            'scroll_align'            => 'top',
            'scroll_inset'            => 'true',
            'scroll_margin'           => '',
            'scroll_color'            => '#3D3D3D',
            'scroll_hideunder'        => '',
            'scroll_width'            => '',
            'circletimer'             => 'false',  // display circletimer?
            'circletimer_autohide'    => 'true',   // auto hide circletimer?
            'circletimer_overvideo'   => 'true',   // visible over slide video while playing?
            'circletimer_color'       => '#A2A2A2',// color of circle timer
            'circletimer_radius'      => 4,        // radius of circle timer in pixels
            'circletimer_stroke'      => 10,       // the stroke of circle timer in pixels
            'circletimer_margin'      => '',
            'circletimer_hideunder'   => '',
            'timebar'                 => 'false',   // display timebar?
            'timebar_autohide'        => 'true',   // auto hide timebar?
            'timebar_overvideo'       => 'true',   // visible over slide video while playing?
            'timebar_align'           => 'bottom',
            'timebar_color'           => '#FFFFFF',
            'timebar_hideunder'       => '',
            'timebar_width'           => '',
            'slideinfo'               => 'false',   // display timebar?
            'slideinfo_autohide'      => 'true',   // auto hide timebar?
            'slideinfo_overvideo'     => 'true',   // visible over slide video while playing?
            'slideinfo_direction'     => 'h',
            'slideinfo_align'         => 'bottom',
            'slideinfo_inset'         => 'false',
            'slideinfo_margin'        => '',
            'slideinfo_hideunder'     => '',
            'slideinfo_width'         => '',
            'slideinfo_height'        => '',
            'on_init'                 => '',
            'on_change_start'         => '',
            'on_change_end'           => '',
            'on_waiting'              => '',
            'on_resize'               => '',
            'on_video_play'           => '',
            'on_video_close'          => '',
            'on_swipe_start'          => '',
            'on_swipe_move'           => '',
            'on_swipe_end'            => ''
           );
       add_filter('masterslider_gallery_slider_attrs', $args);
       ```
   
 * These are all the parameters that you can custom.
 * If you have any further questions, please let me know.
 * Best,
    Averta

Viewing 1 replies (of 1 total)

The topic ‘Parameterize, initialize via shortcode / dynamic loading’ is closed to
new replies.

 * ![](https://ps.w.org/master-slider/assets/icon-256x256.png?rev=1638064)
 * [Master Slider - Responsive Touch Slider](https://wordpress.org/plugins/master-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/master-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/master-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/master-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/master-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/master-slider/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [averta support](https://wordpress.org/support/users/averta_support/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/parameterize-initialize-via-shortcode-dynamic-loading/#post-9217163)
 * Status: resolved