The Worlds Most Powerful
WordPress Builder

If you Purchased & Registered a Slider Revolution License you can comfortably upgrade version 5.x to 6.0 from your WordPress Dashboard.

Why Activate Slider Revolution?

Activating Slider Revolution with your Personal Purchase Code will unlock all available Features.

Easy Live Updates
Personal License Key
200+ Template Library
1000+ Object Library
25+ Amazing Add-Ons
1on1 Ticket Support

*Regular License from $29. One License Key required per Domain.

Slider Revolution 6.0 NOW available!

Create a post-based slider populated with your blog's Sticky Posts

1. Setup your post-based slider with some default options.

Leave the category/tag selections empty to pull in all Stick Posts.

Or select some categories/tags to restrict Sticky Posts to those selections.

2. Add the following code to your theme's "functions.php" file.

function slider_sticky_posts($query, $slider_id) {
 
    // only apply the special filter for slider with "x" ID
    // http://prntscr.com/r3ovyu
    if($slider_id == 4) {
 
        // only include "sticky" posts
        $query['post__in'] = get_option( 'sticky_posts' );
 
    }
 
    return $query;
 
}
 
add_filter('revslider_get_posts', 'slider_sticky_posts', 10, 2);

3. Choose which posts will be pulled into the slider

Visit one of your posts, and select "Edit" from the "Publish -> Visibility" section.

Then choose "Stick this post to the front-page" to tag the post as a "Sticky".

Quick Note:

Unless your website is already setup to display posts on its homepage, designating a post as a "Sticky" like this will not effect your current homepage content (aside from the possible "Sticky Post" slider that you may be adding with this tutorial).

Popular Solutions