Skip to content

Instantly share code, notes, and snippets.

@tomhemsley
Last active May 26, 2016 09:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomhemsley/4957f732707d833406f31cdc622ea198 to your computer and use it in GitHub Desktop.
Save tomhemsley/4957f732707d833406f31cdc622ea198 to your computer and use it in GitHub Desktop.
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