Slider Revolution WP
09.27.2016
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
function slider_sticky_posts($query, $slider_id) { // only apply the special filter for slider with "x" ID // https://tinyurl.com/zb6hzpc 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); |