Jetpack – stats_get_csv period parameter

While researching to answer this SO Question, stumbled upon this one, which gave me the final hint. I’ll reproduce the relevant part: Function get_stats_csv /plugins/jetpack/modules/stats.php The function get_stats_csv calls http://stats.wordpress.com/csv.php. If we visit this address, we get this response: Error: api_key is a required parameter. Required parameters: api_key, blog_id or blog_uri. Optional parameters: table, post_id, … Read more

Customise Jetpack Publicize text

Just some general remarks: Why isn’t the following change working? $custom_message = get_the_title( $post->ID ) .”. $hash_tags; to: $custom_message = get_the_content( $post->ID ) .’ ‘. $hash_tags; Note that get_the_content() doesn’t take a post ID as an input parameter and it depends on global variables, like $pages that’s derived from $post->post_content (with some pagination adjustments), within … Read more

Gravatar Hovercards (Jetpack) jQuery error

You are loading jQuery 1.6.3. .on was included in jQuery 1.7 (I believe). jQuery itself is up to 1.9. You need to be using a more recent version of that library– basically, just let WordPress load its own version and you should be fine. It looks like most of your scripts are loading from your … Read more

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

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)