metaslider_post_feed_args

Description

Use this filter 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

The following code samples should be added to your theme’s functions.php file.

Display all posts tagged to the current category

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.

 Display Sticky Posts only

 

Posted in: Developer API