Jetpack

Jetpack 2.8: Introducing Markdown and Improving Monitor

We’re thrilled to announce that our latest update is out the door! Jetpack 2.8 includes improvements to Jetpack Monitor and also introduces a brand new Markdown module.

Jetpack Monitor Module Card

Improved Jetpack Monitor notifications

Multiple users can now receive Jetpack Monitor email notifications. As an admin user linked to WordPress.com, you can opt in to receive these notifications right from your dashboard. Just navigate to the Jetpack page, find the Monitor module card, and click on Configure. Then, check the “Receive Monitor Email Notifications” setting and save your changes. Now if your site ever goes down you will receive notifications to your WordPress.com linked account email!

Write more efficiently with Markdown

Since introducing Markdown on WordPress.com, we’ve had a lot of requests to bring it over to Jetpack. Well, queue the trumpets, start the drumroll, Markdown is here!

For those who don’t know, Markdown is a quick way to add formatted text without writing out any HTML. Markdown lets you compose links, lists, and other styles using regular characters and punctuation marks. If you want a quick, easy way to write and edit rich text without having to take your hands off the keyboard or learn a lot of complicated codes and shortcuts, then Markdown might be right for you. We do strongly suggest sticking with the “Text” tab in the Editor when using Markdown.

Here is an example of Markdown in the text editor:

Markdown in text editor

And here is that same Markdown converted to HTML in the Reddle theme:

Markdown converted to HTML in Reddle

Isn’t that pretty awesome? You can check out the announcement post over at WordPress.com for more information about Markdown and see our Markdown support page.

Publicize Support for Custom Post Types

For our developer friends out there, we’ve added Publicize support for custom post types, allowing you and your clients to automatically post new entries from any CPT to your social media networks. You’d need to make one small tweak in the code defining the CPT—just add 'publicize' to the CPT’s 'supports' array.

For example, to enable the title, editor, Publicize, and Jetpack’s new support for Markdown: 'supports' => array( 'title', 'editor', 'publicize', 'wpcom-markdown' ),

As always, if you notice any issues with this release, just give us a shout over at the forums or send us a message through our contact form. Thank you for flying with Jetpack!

Posted in Releases | Tagged , , , , , | 29 Comments

Publicize Crash Course: LinkedIn, Tumblr, and Path

Carolyn Sonnek:

The second part of the Publicize Crash Course series. Learn how to connect LinkedIn, Tumblr, and Path in your Publicize settings!

Originally posted on WordPress.com News:

Yesterday, we learned the ins and outs of pushing your new posts to Facebook, Twitter, and Google+. Today, we continue our tour of the Publicize universe with the three other social networks you can connect to from your WordPress.com account: LinkedIn, Tumblr, and Path.

The ability to share your content with different audiences quickly and easily will help you cultivate a healthy readership. Just as important, with Publicize you can tweak your sharing preferences so that each post reaches its intended destination: you can always choose which services to publish to, and what custom message to include (if any).

You can connect to these three services in exactly the same way, and from the exact same page, as the ones discussed yesterday. Simply visit Settings → Sharing in your dashboard, click “Connect” on the desired one, and authenticate your account in the window that opens. Once you’re done…

View original 491 more words

Posted in Tips & Tricks | Comments Off

Publicize Crash Course: Facebook, Google+, and Twitter

Carolyn Sonnek:

Great explanation of the Publicize feature found in Jetpack. Also instructions on how to connect Facebook, Google+, and Twitter accounts.

Originally posted on WordPress.com News:

“I’m publishing posts every day, but where are my readers?”

While there’s no exact science to successfully building a readership, you have a number of built-in tools on WordPress.com to share your work with the world. Our advice? Hook up your various social accounts to WordPress.com and let us do the rest. We want to emphasize, especially to our newest users, that no blog is an island. Clicking Publish is just the first step, and sharing your work across the internet is key to expanding your audience.

What is Publicize?

With Publicize, you can automatically push out your new posts to social networks: Facebook, Google+, Twitter, LinkedIn, Tumblr, and Path.

Publicize

Connecting to your accounts is easy, and you can select which ones to link to your WordPress.com account. To get started, head over to Settings → Sharing. At the top of the page, you’ll see the options pictured…

View original 823 more words

Posted in Tips & Tricks | Comments Off

Jetpack 2.7: Share your content on Google+

We recently released a slew of Google+ integrations for WordPress, and mentioned that Google+ Publicize support would be coming soon to Jetpack users. Publicize makes it easy to share your new posts on other social networks (like Facebook and Twitter). Using it is a great way to build your readership and expose your content to new audiences.

Well, the wait is over — we’re excited to announce that you can now share your latest content on your Google+ Profiles and Pages!

Improved overall performance

Jetpack 2.7, which has just been released, adds Publicize to your site. In order to connect your account(s), head to your dashboard, then go to Settings → Sharing. Clicking on the “Connect” button next to the Google+ logo will prompt you to authenticate your account. Once you have, you can start enjoying the benefits of publishing your content to Google+ — just make sure that you’ve enabled the Publicize module.

Jetpack 2.7 also contains multiple bugfixes and other little features. You can view a full changelog of these updates by visiting this page.

We hope you enjoy Jetpack 2.7!

Posted in Features, Releases | Tagged , , | 44 Comments

New Release: Jetpack 2.6

After two months of silence, here comes Jetpack 2.6! Chock-full of enhancements and goodness, we can’t wait for you to try it out.

New Modules: Single Sign On and Jetpack Monitor

Single Sign On replaces the previous WordPress.com Connect module, added in 2.4. Improving on the WPCC module’s setup process, Single Sign On takes one click to activate, then you’re off to the races! It will also streamline subsequent log ins, as you’ll no longer need a manual approval at sites where you’ve previously been authenticated.

Our other new module, Jetpack Monitor, is an uptime monitor that will check your site every five minutes. If it ever looks like your site is down, we’ll fire off an email to give you a heads-up. Easy, right?

We’ve also included a pile of other enhancements. We’ve switched the code editor in our Custom CSS module, and bundled new filters, new custom post types, and new widgets. We’ve added performance improvements across many modules, as well as support for WP-CLI. We now also make sure that your Publicize connections haven’t expired in the background as you write.

We’re tremendously proud of our latest release, and hope you’ll give it a shot.

– The Jetpack Team

Eight automatticians swimming in the carribean

The Jetpack Team recently spent a week collaborating on the awesomeness of this release down in Puerto Rico! Interested in joining us? You should apply!

Posted in Releases | 25 Comments

How to add a default fallback image if no image can be found in a post

When you publish a new post on your site, Jetpack crawls it and looks for images that can be used when sharing that post on Facebook, on Twitter, or if that post appears in the Top Posts and Pages widget in your sidebar.

Jetpack starts by looking for a Featured Image. If you didn’t define any, we will look for slideshows and galleries, and then for single images you may have inserted in your posts. If you’ve inserted an image that is hosted on another site, we can use it too.

However, sometimes you may not have added any image to your post. In such cases, you can add this code snippet to your theme’s functions.php file, or in a functionality plugin. This way, your readers will see a default image when sharing that post on Facebook, for example:

function jeherve_custom_image( $media, $post_id, $args ) {
	if ( $media ) {
		return $media;
	} else {
		$permalink = get_permalink( $post_id );
		$url = apply_filters( 'jetpack_photon_url', 'YOUR_LOGO_IMG_URL' );
	
		return array( array(
			'type'	=> 'image',
			'from'	=> 'custom_fallback',
			'src'	=> esc_url( $url ),
			'href'	=> $permalink,
		) );
	}
}
add_filter( 'jetpack_images_get_images', 'jeherve_custom_image', 10, 3 );

It’s worth noting that the fallback image has to be larger than 200 x 200px, as per Facebook requirements. If your image is smaller, Facebook will ignore it.

Reference

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

Ever accidentally publicize a post that you didn’t mean to?

Ever accidentally publicize a post that you didn’t mean to? This snippet will prevent the connections from being auto-selected, so you need to manually select them if you’d like to publicize something.

add_filter( 'publicize_checkbox_default', '__return_false' );

You can place this code snippet in your theme’s functions.php file, or in a functionality plugin.

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

How to Override Jetpack Infinite Scroll Settings in a Child Theme

From our illustrious colleagues over at ThemeShaper, I’d like to share with you a post on further customizing Infinite Scroll settings in your themes:

When a theme author adds Jetpack Infinite Scroll support to their theme, they configure its options specifically for that theme. Occasionally you might want to override the theme’s defaults for your purposes, and in this article, I’ll show you how to do so in a child theme.

Here is a typical Jetpack Infinite Scroll setup function…

Read the whole post: How to Override Jetpack Infinite Scroll Settings in a Child Theme.

Posted in Tips & Tricks | Comments Off

How to add Javascript events to the Carousel view

Add this to your site’s js to enable events such as adding Google Analytics tracking code to individual Carousel slides:

jQuery(document).on( 'jp_carousel.selectSlide', '.jp-carousel-wrap', function( event, slides ) {
	// This is just to show you what values get passed in.  Delete it before going to production.
	if ( window.console ) {
		console.log( this );
		console.log( event );
		console.log( slides );
		console.log( slides[0] );
	}
	// Do whatever extra stuff you want here.
} );

You can read more about it here.

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

How to disable the auto-activation of a Jetpack module

In Jetpack 2.6, we will introduce a new filter, jetpack_get_default_modules. It will allow you to stop the auto-activation of a specific Jetpack module.

Here is an example with the Widget Visibility module:

// To disable the auto-activation of Jetpack's Widget Visibility module:
add_filter( 'jetpack_get_default_modules', 'disable_jetpack_widget_visibility_autoactivate' );
function disable_jetpack_widget_visibility_autoactivate( $modules ) {
	return array_diff( $modules, array( 'widget-visibility' ) );
}

// Or, to disable the functionality in your own plugin if the user activates it in Jetpack:
if ( ! class_exists( 'Jetpack' ) || ! Jetpack::is_module_active( 'widget-visibility' ) ) {
	// It's not there, do as you like!
}

Reference.

If you wanted all Jetpack modules to be deactivated by default, you could use the following code:

add_filter( 'jetpack_get_default_modules', '__return_empty_array' );
Posted in Code snippets, Tips & Tricks | Tagged , , , , | Comments Off
Follow

Get every new post delivered to your Inbox.

Join 66,246 other followers