Skip to content

Instantly share code, notes, and snippets.

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 danjjohnson/03456944873d0e48a95c691f8b1a8e68 to your computer and use it in GitHub Desktop.
Save danjjohnson/03456944873d0e48a95c691f8b1a8e68 to your computer and use it in GitHub Desktop.
Jetpack: Disable carousel for a specific post only
function cl_tweak_carousel( $extra_data ) {
global $post;
if ( $post->ID == 23 ) {
$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