800,000+ WordPress sites are already using MetaSlider!


Table of Contents

This part of the MetaSlider API allows you to modify the query arguments used to extract posts in a Post Feed slide.



(array) (required) WP_Query arguments as defined by the slide settings


(object) (required) Current slide data


(array) (required) Current slider settings


(array) (required) Current slide settings


This first example will display all posts tagged to the current category. You can use this code to override the taxonomy restrictions defined in the slide settings, and instead extract all posts which are tagged to the current category. With this code in place you can create a single slideshow and add the Template Include to your category.php template. The slideshow will automatically show posts that are tagged to the current category.

This next example will only display posts marked as “sticky”: