Skip to content

Instantly share code, notes, and snippets.

@danjjohnson
Created July 21, 2016 10:20
Show Gist options
  • Select an option

  • Save danjjohnson/110805857a90831c387fed92a860f0ed to your computer and use it in GitHub Desktop.

Select an option

Save danjjohnson/110805857a90831c387fed92a860f0ed to your computer and use it in GitHub Desktop.
Jetpack: Disable carousel for specific posts only
function cl_tweak_carousel( $extra_data ) {
global $post;
$ids = array( 23,62 );
if ( in_array( $post->ID, $ids ) ) {
$extra_data = array();
}
return $extra_data;
}
add_filter( 'jp_carousel_add_data_to_container', 'cl_tweak_carousel');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment