Forked from chaselivingston/gist:2569f4f1b2435451ca99de3d898395e6
Created
July 19, 2016 15:37
-
-
Save danjjohnson/03456944873d0e48a95c691f8b1a8e68 to your computer and use it in GitHub Desktop.
Jetpack: Disable carousel for a specific post only
This file contains 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 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