WordCamp Switzerland 2015 is happening, join us!

On September 19th another amazing WordCamp Switzerland is going to happen in Zürich. Join us for a day packed with amazing speakers like Konstantin Obenland, the release lead of WordPress 4.3. Read more about WordCamp Switzerland 2015 on SpinPress

https://spinpress.com/wordcamp-switzerland-2015/

By the way this post is a demo of the cool new oEmbed API plugin that might ends up in WordPress core one day. Install it and test it!

Impressions from and around WordCamp London 2015

Before heading to London to meet up with friends and having a great time at WordCamp London, my nomad friend Noel and I spent a few weeks up in Norway, working & exploring.

Sunrise as seen from the current apartment up in Oslo
Sunrise in Oslo early in the morning.

Flying in from Oslo the first event around WordCamp started on Thursday and was the casual friends of Human Made party where I had the honour of taking some pictures. It was a good mix of nice drinks and good discussions about the WordPress community and the WP-API.

See all pictures the friends of Human Made party on Flickr.

WordCamp London 2015

I had a fantastic time at WordCamp London 2015. Karin and Pascal from my team flew in on Friday to be ready for the talks starting on Saturday. The talks I enjoyed most next to meeting awesome people and friends from the WordPress community were:

Karin and I took some pictures at the WordCamp:

At dinner Petya and Siobhan asked me to fill in for Simon Dickson as he was sick. I got the chance to talk about “Multisite on a tight budget” at WordCamp London, thanks for having me.

See all our pictures from WordCamp London on Flickr.

Photo walk with Karin & Dan

Back in 2009 Karin and I met Dan Rubin as one of the speakers at @media2009. He inspired us to start required+ and pursue our dream of building a different kind of agency. We met again and went on a photo walk in London together:

The rest of the set is available on Flickr.

Happytables 3 Launch

The awesome folks from Human Made launched a new version of their restaurant website creator Happytables. Have a look behind the scenes on launch day:

Franz & Petya from Human Made at the Happytables 3 Launch day
Franz and Petya from Human Made working hard on launch day.

More pictures from the Launch and a great write-up on Happytables 3 from Post Status.


 

As you can see, it was an intense week in London and a great WordCamp London 2015. The only flaw this week was the so-called “smell-elevator” in the apartment building :D. No worries, the apartment was fantastic.

Karin in the smell-elevator
Karin in the smell-elevator

A big thank you to all the people involved with WordCamp London!

Friends of Human Made #WCLDN

Last night the humble folks from Human Made invited their friends to join them for some drinks before WordCamp London. Good drinks and excellent discussions made this an excellent intro to the upcoming WordCamp. I had the honour to take some pictures of this chill event.

Check out the entire photoset on Flickr.

Code Snippet: WordPress Page Template Redirect to child page

Sometimes you need a simple way to redirect a parent page directly to it’s first child page in WordPress. This little snippet is a WordPress page template to be used in your theme. It includes support for WPML, in case you still use my least favourite translation plugin in the universe. I strongly suggest you use something like Polylang or Multilingual Press to create multilingual WordPress sites, but that’s material for another post.

Page Template

<?php 
/**
  * Template Name: Redirect to child page
  * Description: Redirects to the top child page
  *
  * @package PUT YOUR THEME NAME HERE :D
  */ 

global $post; $parent = $post->ID;

// In case you use WPML
if ( defined( 'ICL_LANGUAGE_CODE' ) ) {
    $_type  = get_post_type( $post->ID );
    $parent = icl_object_id( $post->ID, $_type, true, ICL_LANGUAGE_CODE );
}
$post_children = get_children( array(
    'posts_per_page' => 1,
    'orderby' => 'menu_order',
    'order' => 'ASC',
    'post_type' => 'page',
    'post_status' => 'publish',
    'post_parent' => $parent
) );
wp_redirect( get_permalink( array_pop( $post_children )->ID ), 301 );
exit;

Check out the gist for this page template.

WordPress Zurich Meetup #8

Enjoy some impressions from tonights WordPress Zurich meetup. It’s meetup number eight and the fine folks from Liip hosted us again.

Ivo Marino talked about their amazing Vagrant/Ansible Workflow, a truly beautiful and advanced setup for WordPress and now Laravel 5 too.

“Vagrant provides 1 host for dev and 3 hosts for stage, for dev you only need one node, the 3 stage nodes simulate prod.”

Andy Feuz gave us some insights on his Perfect Mix to Create a Hybrid App using the ionic framework, AngularJS and WordPress.

Reasons for a hybrid app? The guy who did the WordPress site can do it :-)

In case you share my passion for WordPress and happen to be in Zurich, feel free to join the official WordPress Zurich Meetup group.

Larger versions of the pictures can be downloaded from Flickr.

Code Snippet: Remove Jetpack Related Posts from Woo Testimonials

When using the Woo Testimonials shortcode, the Jetpack Related Posts module automatically adds the related posts at the end of the testimonial shortcode. We don’t want that, we want to display the related posts at the end of the actual post content.

Code Snippet

/**
 * Remove Jetpack Related Posts from Woo Testimonials shortcode
 * 
 * @see https://jetpack.me/support/related-posts/customize-related-posts/#delete
 *
 * @param string $content
 * @return string $content
 */
function fleeds_jetpackme_remove_rp( $content ) {
 
 // Get the Jetpack Related Posts instance
 $jprp = Jetpack_RelatedPosts::init();
 $callback = array( $jprp, 'filter_add_target_to_dom' );
 
 // Only remove it from the woo_testimonials the_content filter
 if ( 'testimonial' === get_post_type() ) {
 remove_filter( 'the_content', $callback, 40 );
 }
 
 return $content;
}
add_filter( 'the_content', 'fleeds_jetpackme_remove_rp', 20 );

Check out the gist for this code snippet.

WordPress Zurich Meetup #7

Here are some impressions from WordPress Zurich Meetup #7. Probably due to the late venue change, only a few people showed up. Really glad Liip offered to host us spontaneously at their beautiful office.

Nick Weisser gave a short presentation on WordPress and languages, especially the de_CH language packs, thanks for sharing. It turned into an avid discussion about multilingual websites and how WordPress handles the language packs.

In case you share my passion for WordPress and happen to be in Zurich, feel free to join the official WordPress Zurich Meetup group.

Larger versions of the pictures can be downloaded from Flickr.