800,000+ WordPress sites are already using MetaSlider!

Metaslider_post_feed_args

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


Parameters

$args

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

$slide

(object) (required) Current slide data

$slider_settings

(array) (required) Current slider settings

$slide_settings

(array) (required) Current slide settings


Examples

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”: