"> Example: keywords custom field set to "foo,bar,baz" Output: */ function keywords() { global $single,$posts,$post_meta_cache; // only act when viewing a single post. Else, exit. if (!$single) return; // Get the post $post = $posts[0]; // Get the keys and values of the custom fields: $id = $post->ID; $keywords = $post_meta_cache[$id]['keywords']; if (count($keywords)) { foreach ($keywords as $word) { $words .= "$word"; } } return $words; } ?>