Created
May 24, 2017 10:21
-
-
Save weekendlah/daf44c24d8a877a687c39807fc2f4d9f to your computer and use it in GitHub Desktop.
Customizing jepack’s related posts on mobile device
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 jetpackme_more_related_posts( $options ) { | |
if(wp_is_mobile()): | |
$options['size'] = 2; | |
else: | |
$options['size'] = 3; | |
endif; | |
return $options; | |
} | |
add_filter( 'jetpack_relatedposts_filter_options', 'jetpackme_more_related_posts' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment