Skip to main content

[WP] List of supported variables for "Posts Slider"

List of supported variables for Slide Markup Editor:

{{image_tag}}
HTML tag for RoyalSlider image (it's IMG tag for normal images and A tag for lazy-loaded), includes alt attribute, video attribute and big image attribute (if available). Read more in docs.

{{image_url}}
URL to main image

{{image_width}}
Width of image

{{image_height}}
Height of image

{{thumbnail}}
Returns thumbnail (rsTmb) RoyalSlider element. Read more in docs.

{{thumbnail_url}}
URL to main image

{{thumbnail_width}}
Width of thumbnail

{{thumbnail_height}}
Height of thumbnail

{{large_image_url}}
URL to "full" size image size

{{title}}
Post title

{{content}}
Post content

{{excerpt}}
Post excerpt

{{content10}}, {{content20}}, {{content30}}, 40, 50, 100, 150, 300
Post content limited by number of words. e.g. {{content40}} will return first 40 words of post content.

{{permalink}}
Direct link to post

{{date}}
Post publish date

{{time}}
Post publish time

{{author_name}}
Post author name

{{author_url}}
Post author URL

{{tags}}
Comma separated list of post tags (since 3.0.3).

{{categories}}
Comma separated list of post categories (since 3.0.3).

Posts-slider also can grab meta data (custom fields etc.)

To see what data is available in the corresponding post add {{debug_meta}} to markup editor. You may use chaining to access most of the data. For example, if your post has a custom field book_author, its value can be accessed like so: {{meta.book_author.0}}. Which can be used in slide markup like so:

<div>
{{image_tag}}
<div>
Book by {{meta.book_author.0}}
</div>
</div>