Related Posts with WordPress

without Plugin and the help of Custom Fields

2011

While looking around for a code to show Similar Posts I found this great piece of code. The problem is, that it always takes the first tag — which are sorted alphabetically. So I extended the code to chose the tag you like manually by a value in the custom fields. If you leave it blank it will still take the first tag.
You have to put the code in the file single.php in your theme. The code has to be in the loop.

You have to name the Custom Field tagnumber or you have to change it in the code. If you for example fill in the value 2 it will be the 3 tag since the array starts to count with 0. If you like you can add a +1 in the code.

Have fun. Here is the code:

<?php

   $tags = wp_get_post_tags($post->ID);

   if ($tags) {
     $tagnumber = get_post_custom_values("tagnumber"); // Get the value/tagnumber from Custom field
     if (isset($tagnumber[0])) {
       $tagnumber = get_post_meta($post->ID, 'tagnumber', true); // If there is a value take it...
     }
     else {
       $tagnumber = 0; // ...otherwise take the first tag
     }                        

   $first_tag = $tags[$tagnumber]->term_id;
   $args=array(
    'tag__in' => array($first_tag),
    'post__not_in' => array($post->ID),
    'showposts'=>4, // Number of related posts
    'caller_get_posts'=>1
   );
   $my_query = new WP_Query($args);

   if( $my_query->have_posts() ) {
     echo 'Related Posts';
     while ($my_query->have_posts()) : $my_query->the_post(); ?>
     <a href="<?php the_permalink() ?>" rel="bookmark" title="Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>

 <?php
 endwhile;
 }
 }
?>

Internetbrunnen Icon

Navigation sign

2010

I lately designed the icon/logo for the Internetbrunnen (Internetwell), a project whose goal is to provide internet on the basis of donations.
The project was initiated by the association PENG — Association for the promotion of Design, Art & Communication in Mainz, Germany and the Co-Founder Alex Boerger.
The icon will help people to find places with an Internetwell.

For more information please visit the official Internetbrunnen Website, join the Facebook Site or read the article on heute.de

Internetbrunnen Logo Icon


Nach 7 wundervollen Jahren ziehe ich nun nach München.

*** UPDATE: Ich bin schon nach München gezogen und es ist toll! ***
After about 7 wonderfull years in Mainz
I decided to move to Munich in mid-June.

*** UPDATE: I already live in Munich and it´s great! ***


MYPS Making of

My role: Production Design

2010

In 2008 I made the production design for the movie Myps by Sebastian Schnabel and Alex v. Schilling. A few days ago the making of was made and finished by Georg Baumann and Christoph Schulte.

Watch the making of here


Parts of my animation “History of the Internet” and some extra scenes appeared on the TV show Quarks&Co on national television in Germany. See the contribution made by Mike Schaefer here.



My diploma “PICOL, PIctorial COmmunication Language” was awarded at the international competition for students in design and architecture :output12.



Read the articel on time.com