Filter Doesn’t Work for Future Posts
-
Hello, this plugin is great and does 99% of what I need. ?? However, I’m trying to use your filter in the functions.php file to show only future posts and when I do that, it shows nothing at all. Any thoughts on this?
add_filter('dd_carousel_filter_query_args', 'filter_carousel', 10, 2); function filter_carousel($args, $carouselID){ if ($carouselID == 9879){ $args = array( 'post_status' => 'future' ); return $args; } }
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Filter Doesn’t Work for Future Posts’ is closed to new replies.