Leave a Reply

1 comment

  1. the_meta() echos the results to the page, you could make your own replacement function:

    function get_the_meta() {
            if ( $keys = get_post_custom_keys() ) {
                    $output="<ul class='post-meta'>n";
                    foreach ( (array) $keys as $key ) {
                            $keyt = trim($key);
                            if ( is_protected_meta( $keyt, 'post' ) )
                                    continue;
                            $values = array_map('trim', get_post_custom_values($key));
                            $value = implode($values,', ');
                            $output.= apply_filters('the_meta_key', "<li><span class='post-meta-key'>$key:</span> $value</li>n", $key, $value);
                    }
                    return $output . "</ul>n";
            }
    }
    }