Last active
May 26, 2016 09:30
-
-
Save tomhemsley/4957f732707d833406f31cdc622ea198 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function metaslider_post_feed_and( $args, $slide, $slider_settings, $slide_settings ) { | |
if ( isset( $args['tax_query'][0] ) ) { | |
$args['tax_query'][0]['operator'] = 'AND'; | |
} | |
return $args; | |
} | |
add_filter( 'metaslider_post_feed_args', 'metaslider_post_feed_and', 10, 4); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment