Every Day A Post of WordPress Tips and Tricks until Christmas!

WordPress-Christmas-2013

The time has come and our loyal reader know already our traditional Advents Calendar. For the people who don't know, every year we had in December each day, until the 24th (Christmas Eve in Germany), a post with specials, tips, tricks, plugins, tutorials and so on.

Since it is quite a lot work to accomplish 24 high quality posts, we asked some of the finest WordPress Experts in Germany if they would like to contribute some ideas and great posts to it every day.

We decided to put all the posts on the new marketpress.com blog, where you already can find some really interesting posts like:

Back to the Future - How wp_date_query Works!

Is there a maximum size for WooCommerce shops?

Extend WordPress User Roles: Theme Options for Editors

Code is poetry?

Ghost-Installation with Windows – What You Need to Know!

WordPress Backend Design Study

WordCamp Europe – Video Interviews with Matt, Otto and other Core Contributor

Deploying WordPress with Git and Capistrano

WordPress becomes 10 – free Infographic!

Multilingual WordPress with Multisite? Yes!

Creating and customizing Child Themes

So check out the daily posts on marketpress.com and enjoy!

More information about this tradition and what you can expect for the next 24 days can be found here!

Meet Us At WordCamp Europe!

Bild 435This weekend Frank and I will be attending and speaking at the first ever WordCamp Europe in Leiden near Amsterdam, Netherlands! We are really thrilled to be there and can't wait to meet all the WordPress Gurus from all over the world and see some really interesting sessions!

Frank and Toscho will have a presentation about our MultilingualPress Plugin, a great solution for WordPress with multilingual functionality. Since the very best comes at the end, they are scheduled to be the last presentation on Sunday at 16:45 "The State of Multilingual WordPress". They will show how easy it is to use a WordPress Multisite and create a multilingual website.

We are really excited to see many of our friends and other WordPress enthusiasts, as we are, at the event. The participant list is a who’s who of WordPress experts. It will surely a great and interesting weekend!

If you’re attending WordCamp Europe make sure you say hello, we love to have a chat or a beer with you! :)

Ooooh, and if someone doesn't know how we look like, here we go:

Alex

Alex

Frank

Frank

Lifespan of a WordPress version

The new version 3.6 has been released much later than anticipated; the release has been estimated for the end of April and has finally been released in early August. Therefore v3.5.x stayed the freshest available version for 234 days. How does this compare to the previous versions?
wp_versions
On average a WordPress version was replaced by a new one after 198 days. Outstanding is the version 2.0 which stayed the newest version for over one year (Dec 2005 - Jan 2007). Starting with version 2.1 WordPress development took a faster pace and the release of new versions took about four to six months.

(Source: Wikipedia)

free-web-fonts

Beautiful Web Type Combinations

Fonts have become great favorites of the customers, with relatively little effort you can achieve a lot - at least if you understand some of the typography and use solutions that are easy to implement. In this context, I had experiences with own fonts from designers and the costs are not in proportion to the use of free web fonts. In particular, Google provides here a big range of solutions and makes the integration easy.

The endless choices of fonts also presents a problem, it is not easy to find the right fonts in a good combination. In the past I collected some solutions in a single page and now have a very nice scope. The solutions are not from me, but usually by designers in the world wide web.
Continue reading …

broken doppelgaenger

Don’t use strlen()

Each time I see someone use strlen() I cringe. It will break.

Despite its name, strlen() doesn’t count characters. It counts bytes. In UTF-8 a character may be up to four bytes long.

So what happens if we use strlen() and its companion substr() to shorten the title of post?

<?php # -*- coding: utf-8 -*-
declare( encoding = 'UTF-8' );
header('Content-Type: text/plain;charset=utf-8');

$string = 'Doppelgänger';
print 'strlen():    ' . strlen( $string ) . "\n";
print 'mb_strlen(): ' . mb_strlen( $string, 'utf8' ) . "\n\n";

print 'substr():    ' . substr( $string, 0, 8 ) . "\n";
print 'mb_substr(): ' . mb_substr( $string, 0, 8, 'utf8' );
WPengineer Misc - WP Engineer

Output:

I have to use an image here. If I had used the plain text output our newsfeed would break. And that’s what happens each time you use strlen() and substr() on strings encoded in UTF-8: You end up with partial characters and invalid UTF-8.

Alternatives for mb_strlen()

You can use different methods to get the real string length.

$length = preg_match_all( '(.)su', $string, $matches );

See also Hakre: PHP UTF-8 string Length.

Or just use …

$length = strlen( utf8_decode( $string ) );

There is also a nice php-utf8 library on GitHub from Frank Smit.

Michael-Preuss2

We’ve Lost A Very Good Friend, WordPress Enthusiast And An Important Part Of WPEngineer!

Sadness has descended on WPEngineer last week. Michael Preuß, one of our WPEngineer Team, died suddenly after a short illness and after a memorable life.

Frank and I are still in shock and we can't realize that Michael left us without saying goodbye. He leaves a big gap in our life. He was not only our teammate at WPEngineer, he also was a very good friend, who have shared the same love for WordPress and the community as we do.

We didn't meet us very often in person, since we live quite far away from each other. But when we did, we always had a blast and fun talking about WordPress and other stuff that was going on right now around the world. But most of the time we were talking on the phone for hours, literally.

This time our reunion was one of Frank's and my saddest moment. We had to carry Michael to his grave. It was painful, incomprehensible and unbearable at once. Unlikely for us, not one word about WordPress, this time we had to mourn the loss of our beloved friend Michael.

Feb 2009 - Matt meets WPEngineer: Frank, Michael, Matt, Alex

Feb 2009 - Matt meets WPEngineer: Frank, Michael, Matt, Alex

Just 4 years ago we got to know each other and became very good friends. Michael, Frank and I had the urge to give the WordPress community something back, a platform for writing tips, tricks and solutions for the WordPress community - WPEngineer was born! Frank and I will continue to publish future posts, despite the loss we have.

We will also help his partner and friend Heiko, to continue Michael's life's work Xtreme Theme.

He left his wonderful and caring wife Carola and his two sons Robert and Alexander behind, and I'm sure, many other WordPress Junkies, like we are, who still can't believe he is gone forever!

You will always be in our Source Code!

In deepest sympathy

Alex & Frank