A week in India

Back in September, I got the chance to travel to India for a few days. I was invited to speak at WordCamp Pune, and had a few days to discover a part of the Indian WordPress community, meet wonderful people, chat about Jetpack, and share my experiences as a Happiness Engineer at Automattic.

Continue reading A week in India

Color Posts: an update for your Android readers

About a year ago I released a small plugin named Color Posts. It’s a fairly simple plugin, and it can be extended with filters. I use it on this site, and I’ve made extensive use of the filters to add some color to the sidebar as well as in other areas of the site.

Among all these customizations, there is one that I really like: if you use Chrome in Android, the browser’s background color matches the color picked by my plugin:

2015-11-23 11.14.33
Color Posts changes Chrome’s background color to match the post’s color.

I thought this little detail could be useful for everyone, so added it to the plugin itself! If you use Color Posts, go update now! 😊

Jetpack: redirect your subscribers to a Thank You page

Jetpack includes a Subscriptions module that makes it easy for your readers to subscribe to your site, and then receive email or Reader notifications for each one of the posts you publish on your site.

Your readers can use a Subscription widget to subscribe to your site. You can see how it looks on this very site (oh, and subscribe if you haven’t already 😊 ).

By default, when submitting your email address into the form, the page reloads and success message appears instead of the email form. However, starting with Jetpack 3.8, you can now redirect your subscribers to a specific page on your site instead. It could be a “Thank You” page, it could be a little explanation of what they need to do to confirm their subscription, … That’s up to you.

To create that redirection, you can use the new jetpack_subscriptions_form_submission action, like so:

 * Redirect all successful subscription submissions to a 'thank-you' page
function jeherve_custom_sub_redirect_page( $result ) {
	if ( 'success' === $result ) {
		$thanks_page = 'thank-you';
		wp_safe_redirect( $thanks_page );
add_action( 'jetpack_subscriptions_form_submission', 'jeherve_custom_sub_redirect_page' );

Place that code in a functionality plugin, and you’re all set!

WordPress Security — WPBudapest meetup

Another month, another #wpbudapest meetup! If you live in Budapest and like WordPress, you should join us next time!

This month, we talked about security and I volunteered to give a talk to outline some basic WordPress security principles. You’ll find my slides below, as well as an outline of my talk with some links, and a small screencast of me going through my talk. Our meetup location is quite dark so I opted to record myself at home instead; it’s a good way to practice! :)

Continue reading WordPress Security — WPBudapest meetup

An experiment with the WP REST API and Jetpack’s REST API

A few months ago, I set to learn more about the differences between Jetpack’s REST API and the WP REST API plugin. Both projects are very interesting for the future of WordPress, as they allow third-party apps and services to interact with WordPress.

I consequently developed a little plugin using both APIs: REST API Post Embeds.

Learn more about the plugin

Set up CloudFlare’s free Flexible SSL on your WordPress site

I’ve been meaning to play with CloudFlare’s free SSL options for a while, and I finally got around to give it a try. It took me a little while to get to a point where everything worked properly, but I think I finally figured everything out!

If you want to use CloudFlare’s free Flexible SSL on your WordPress site, here are some instructions that could help you!

Continue reading Set up CloudFlare’s free Flexible SSL on your WordPress site

Jetpack: how to deal with missing images in the Related Posts module

Jetpack Related Posts are great. You should use them!

They are also customizable; we added a lot of filters to allow you to customize the output of the Related Posts. You can find a lot of examples here: Customize Related Posts (Kudos to Xiao for all the great work he’s done with Jetpack Related Posts).

The module also includes an option to “use a large and visually striking layout”. When that option is active, Jetpack will look for a large image (at least 350*200px) in your posts, and use that image when displaying Related Posts. It looks great, and I use it on this site:

Related Posts

What doesn’t look that good, however, is when some of the Related Posts don’t have any image.

Missing Related Image

There are 2 ways to solve this small issue.

Continue reading Jetpack: how to deal with missing images in the Related Posts module