Moving sharedaddy buttons (in Jetpack) to the top of a post?

Basically it line 480 in sharing-service.php where it says: return $text.$sharing_content; and it should be return $sharing_content.$text; now changing that file won’t keep your changes on updates so you can copy that function (sharing_display) to your functions.php and rename it to something different say my_sharing_display and make the change there. Next you need to remove … Read more

Popular posts by view with Jetpack

There is a Jetpack widget called Top Posts and Pages (Jetpack) If you check out the [source code][2] for this widget, you can see that it’s using the function stats_get_csv() to retrieve the stats: $post_view_posts = stats_get_csv( ‘postviews’, array( ‘days’ => 2, ‘limit’ => 10 ) ); If you want to generate your custom most … Read more

Jetpack plugin (ShareDaddy): Prevent share buttons showing on custom post types?

ShareDaddy uses two filter hooks either the_content or the_excerpt this means that your custom post type theme template file has to use one of these two functions the_content(); or the_excerpt();. Update Ok I guess i didn’t get the question. So to add the metabox to your custom post type add this: // Hook things in, … Read more

Custom Loop and Infinite Scroll

I used ‘init’ in the add_action in my own implementation of infinite scroll, try that. add_action( ‘init’, ‘vg_infinite_scroll_init’ ); As to your question about rendering a custom query you would do the following. -Set the render to your function name ‘render’ => ‘your_render_function, -Add your function to call a specified loop template function your_render_function(){ get_template_part( … Read more

Jetpack Infinite Scrolling For Multiple Columns On Same Page?

I’ve checked the source code for Slim Jetpack and this task can not be accomplished without rewriting that plugin. Here are some hints: You’ll have to duplicate line 539 of ‘/modules/infinity-scroll/infinity.php’ stating: jQuery.extend( infiniteScroll.settings.scripts, <?php echo json_encode( $scripts ); ?> ); You’ll have to duplicate line 475 of ‘/modules/infinity-scroll/infinity.js’ as this initializes infinite scroll. (Do … Read more

Cannot activate Jetpack on my server

You may not have enough processes running. To test, try creating a file sleeper.php: <?php sleep(5); echo “Working fine\n”; And then run this from the cli: curl -m 6 http://example.com/sleeper.php & curl -m 6 http://example.com/sleeper.php & wait If there is only one process it will print out something like this: Working fine curl: (28) Operation … Read more

Is “Featured Content” in Twenty Fourteen done with a plugin, or is it native in WP4.0?

The featured content is part of the TwentyFourteen theme, and is not implemented as a plugin, but rather as an Appearance > Customize setting (via get_theme_mod()), which allows the use of a Grid or Slider layout, choosing posts base on the tag provided. BTW, I figured this out only after reading your post! So thanks … Read more

How to tell if Jetpack’s Photon is active?

We just committed a new function to Jetpack Trunk, and it should be enabled in the next release, Jetpack::is_module_active() — http://plugins.trac.wordpress.org/changeset/716884 Then you can just call: if( class_exists( ‘Jetpack’ ) && Jetpack::is_module_active( ‘contact-form’ ) ) {} Or at least, you will once the next version releases, and the user has their Jetpack updated. 🙂 If … Read more