<?php
/*
Plugin Name: Meta Description T1
Plugin URI: http://www.bueltge.de/
Description: Benutzerdefiniertes Feld Description auslesen, Tutorial Teil 1
Version: 1.0
Author: Frank Bueltge
Author URI: http://www.bueltge.de/
Update Server: http://www.bueltge.de/wp-content/download/wp/
Min WP Version: 1.5
Max WP Version: 2.0.4
*/


// innerhalb von the_loop reicht das
function fb_meta_description() {
    global 
$id$post_meta_cache;

    if ( 
$keys get_post_custom_keys() ) {
        foreach ( 
$keys as $key ) {
            
$values array_map('trim'get_post_custom_values($key));
            
$value implode($values,', ');
            if ( 
$key == 'description' ) {
                echo 
"$value";
            }
        }
    }
}

?>