2. Posts Slider

NOTE

Video Pro slider shortcodes should be used in a full-width row (col-span-12) only

SCREENSHOTPS-layout1

THE CODE

[videopro_slider title="" posttype="" custom_button_url="" custom_button_target=" layout="" count="" condition="" order="" cats="" tags="" ids="" show_datetime="" show_author="" show_comment_count="" show_like="" show_rating="" video_duration="" custom_button="" videoplayer_lightbox="" videoplayer_inline="" post_format="" autoplay=""]

PARAMS

The Post Slider shortcode has the following variables/options:

  • title – string – enter heading text of the slider. Applied for layout 1, 2 and 6
  • post type – select- if leave empty, default is Post
    • post (defautl)
    • ct_actor
    • ct_channel
    • ct_playlist

NOTE: With the post types: ac_actor, ct_channel, ct_playlist, these params will be no longer availabe: condition, cats, post_format, show_comment_count, show_like, show_duration, videoplayer_lightbox, videoplayer_inline, autoplay

  • custom_button – string – Text for a custom button. If empty, button is hidden. Applied for layout 1, 2 and 6
  • custom_button_url – URL – URL of the button. Applied for layout 1, 2 and 6
  • custom_button_target – select – URL target of the button
    • (empty) – open URL in current tab
    • _blank – open URL in new tab
  • count – number – Number of items
  • condition – select – condition to query items
    • latest – order by published date
    • view – order by most viewed posts
    • like – order by most liked posts
    • comment – order by most commented posts
    • title – order by title alphabetically
    • input – order by input ID (only available when using ids parameter)
  • layout – select – choose one of 9 pre-defined layouts. Please check here to get the previews of all Posts Slider layouts
  • order– select
    • asc – Ascending
    • desc – Descending
  • cats – mix – list of categories (ID/slug) to query items from, separated by a comma. For example: 1, 2, 3
  • tags – mix – list of tags to query items from, separated by a comma. For example: tag-1, tag-2, tag-3
  • ids – mix – list of post IDs to query, separated by a comma. If this value is not empty, cats, tags and featured are omitted
  • post_format – select – select Post Format is  (if leave blank, it will show all)
    • standard
    • video
    • audio
    • gallery
  • show_datetime – 1/0 – Show post published date, time
  • show_author – 1/0 – Show post author name
  • show_comment_count – 1/0 – Show post comment count number
  • show_like – 1/0 – Show post Like button, require WTI Like Post plugin installed
  • video_duration – 1/0 – Show video duration, if it is Video Post
  • videoplayer_lightbox – 1/0 – Enable lightbox for video player if item is video post
  • videoplayer_inline – 1/0  – Enable Video Player for video items. Applied for layout 5, 6, 7, 8, 9. Requires post_format=”1″ to work correctly.
  • autoplay – 1/0 – autoplay or not

Articles