The post-timeline
shortcode allows you to create a dynamic timeline with various customization options. You can use gallery-
prefixed attributes to configure the Owl Carousel settings dynamically. This approach provides flexibility and ease of use, enabling you to leverage the full range of Owl Carousel options without modifying the JavaScript code directly.
Usage #
To use the post-timeline
shortcode with Owl Carousel settings, add the gallery-
prefix to any Owl Carousel option you wish to configure. The attributes will be automatically parsed and applied to the carousel.
Shortcode Example #
Here’s an example of how to use the shortcode with various Owl Carousel options:
[post-timeline
gallery-autoplay="1"
gallery-autoplay-timeout="5000"
gallery-loop="1"
]
Available Attributes #
You can use any valid Owl Carousel option by prefixing it with gallery-
. Below are some common options you might use:
gallery-autoplay
: Enable or disable autoplay. Use1
for true and0
for false.gallery-autoplay-timeout
: Set the autoplay interval in milliseconds.gallery-margin
: Set the margin between items.gallery-nav
: Enable or disable navigation arrows. Use1
or0
.gallery-responsive
: Set responsive breakpoints and the number of items displayed at each breakpoint.
For a complete list of Owl Carousel options, please refer to the Owl Carousel documentation.