Changes to the Twitter Widget

Screen Shot 2013-04-30 at 11.25.38 AMIn Jetpack 2.2.3, released on April 26th, 2013, we introduced a new widget called the “Twitter Timeline” widget. This widget allows you to display your tweets on your blog in a much richer way then you could with the old Twitter widget. Users can retweet, favorite, and reply to you straight from your blog. The experience is also much closer to the experience of Twitter.com.

The old Twitter widget — which shipped with versions of Jetpack below 2.2.3 — will stop functioning on May 7th. This is because of some changes Twitter is making with how developers communicate with their service. Our new widget uses their timeline product which allows us to offer a solution that will continue working while providing additional features.

The old widget will gracefully stop returning output after May 7th. Any admins on your blog will receive a message asking them to switch to the new widget.

Let us know if you have any questions or what you think of the new widget in the comments below!

Posted in Misc | 17 Comments

Jetpack 2.2.5

Dear Jetpack Community,

Today we released Jetpack 2.2.5. This is a minor release with a few small bug fixes:

  • Stats enhancement: counting of registered users’ views can now be enabled for specific roles
  • Security tightening for metadata support in the REST API
  • Minor update to the Twitter Timeline widget for future compatibility
  • Custom CSS: prevent a possible PHP warning, and allow the content width setting to be larger than the theme’s content width

You should update immediately via the one-click update prompt in your dashboard.

You can read the full changelog here. As always, please get in touch with us if you run into an issue. We’d be very happy to help!

Posted in Releases | 17 Comments

How to remove the comment form from Carousel View

Sometimes, you may not want your readers to comment on single images. If that’s the case, you can deactivate comments on all attachment pages and in the Carousel view by adding this code snippet to your theme’s functions.php file:

function tweakjp_rm_comments_att( $open, $post_id ) {
    $post = get_post( $post_id );
    if( $post->post_type == 'attachment' ) {
        return false;
    }
    return $open;
}
add_filter( 'comments_open', 'tweakjp_rm_comments_att', 10 , 2 );
Posted in Code snippets, Tips & Tricks | Tagged | Comments Off

Custom post type and metadata support in the REST API

Originally posted on Developer Resources:

We’ve recently made some updates to the REST API which is available here on WordPress.com and for any Jetpack-enabled site that have the REST API module activated. The API now has full read and write support for custom post types and post metadata.

You can specify a post’s post type when you create or edit it. If you’re fetching a single post, you will receive it’s post type in the response. Of course, you can also specify a post type when fetching a series of posts. In all cases the parameter to use or look out for is type.

You can also query posts by metadata using the new meta_key and meta_value parameters. You can add, update, delete or retrieve a post’s metadata when creating, editing or getting a single post, using the new metadata parameter which accepts an array of metadata keys, ids,

View original 388 more words

Posted in Uncategorized | Comments Off

Urgent Bug Fix: Jetpack 2.2.4

Dear Jetpack community,

I want to apologize, firstly, for pushing multiple updates out to you in one day. We’ve been doing our very best over the last several months to make sure that our releases are stable and tested in as many disparate environments as possible.

In this case, a bug cropped up because of an oversight in how we loaded a compatibility file for bbPress in Jetpack. It wasn’t caught in testing, which is unfortunate. This is a good example, though, of how we learn from our mistakes, improve our processes, and do better with the next release.

For those users effected by this, we decided it would be better to release Jetpack 2.2.4 as soon as possible to resolve this issue.

As always, please get in touch with us if you run into an issue. We’d be very happy to help!

Posted in Uncategorized | 8 Comments

Spring Has Sprung; Jetpack 2.2.3

Hello Jetpack community,

We’ve been hard at work on Jetpack over the last couple of weeks. Since releasing version 2.2.2 (which was mainly a bug fix release), we have focused our attention on making sure that Jetpack will play nicely with WordPress 3.6 when it is released. Here are the highlights:

  • Yahoo! Updates API is going away, so Yahoo! has been pulled out of Publicize;
  • The Shortcode module now includes a Bandcamp shortcode;
  • The Audio flash player was removed in 2.2.2 for security reasons. We fixed the vulnerability and reenabled the flash player;
  • The plugin adds Infinite Scroll support to Twenty Thirteen;
  • With Jetpack 2.2.3, the reply-title portion of the comment form can be styled by the theme;
  • and many other things that you can read about in the changelog.

Keep an eye on our news feed! We will be posting some articles on how to use Jetpack-beyond-the-basics, plus some on “getting to know”-the-Jetpack-folks.

Thanks, as always, for following along with us. Here are some updated ways to get in touch:

Posted in Uncategorized | 22 Comments

Adding reCaptcha to the Email Sharing Button

How do I add reCaptcha to the Email button

The Email button is great, and you can make it even better by adding a Captcha to the submission form:

reCaptcha for Jetpack

To add the Captcha to your site, follow these steps:

  1. Start by registering on this site. Upon registration, you will receive a Public and a Private key.
  2. Open your site’s wp-config.php file in your favorite text editor, and add the following constants with both reCaptcha keys right before /* That's all, stop editing! Happy blogging. */:
    define( 'RECAPTCHA_PUBLIC_KEY', 'XXXXXXX' );
    define( 'RECAPTCHA_PRIVATE_KEY', 'XXXXXXX' );
    
  3. Voila! Your email sharing buttons are now protected against spammers!
Posted in Code snippets, Tips & Tricks | Tagged , , , | 1 Comment

How to remove stylsheets added by Tiled Galleries and Carousel

If you wish to use your own stylesheets instead of the ones that are automatically added to the posts where you’ve inserted a Tiled Gallery, or a gallery using Carousel, you can add the following code to your theme’s functions.php file, or to a functionality plugin.

To remove Tiled Galleries’s stylesheet:

function tweakjp_rm_tiledcss(){
    wp_dequeue_style( 'tiled-gallery' );
}
add_action( 'wp_footer', 'tweakjp_rm_tiledcss' );

To remove Carousel’s stylesheet:

function changejp_dequeue_styles() {
    wp_dequeue_style( 'jetpack-carousel' );
}
add_action( 'post_gallery', 'changejp_dequeue_styles', 1001 );
Posted in Code snippets, Tips & Tricks | Tagged , , , , | Comments Off

Enable Infinite Scroll in your theme using Masonry

To enable Infinite Scroll in your theme, you can follow the steps described here. However, if your theme uses the Masonry library you’ll need a few extra steps. Luckily, WPTheming put together a great tutorial:
Jetpack Infinite Scroll + Masonry

Posted in Code snippets, Tips & Tricks | Tagged , , , | Comments Off

How to change the credit link in the Infinite Scroll footer

If you’d like to change the default credit link appearing in the Infinite Scroll footer, you can use the infinite_scroll_credit filter, like so:

function tweakjp_cust_credit() {
	return '<a href="http://example.com">My Custom Link</a>';
}
add_filter( 'infinite_scroll_credit', 'tweakjp_cust_credit' );

Once you add that code to your theme’s functions.php, a new link will appear instead of the default “Powered by WordPress” link.

Posted in Code snippets, Tips & Tricks | Tagged , , | Comments Off
Follow

Get every new post delivered to your Inbox.

Join 57,919 other followers