Created
July 21, 2016 10:20
-
-
Save danjjohnson/110805857a90831c387fed92a860f0ed to your computer and use it in GitHub Desktop.
Jetpack: Disable carousel for specific posts only
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 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