Tweaked test version of the_meta() a little
git-svn-id: https://develop.svn.wordpress.org/trunk@948 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3754111ee2
commit
8ef6846f5a
@ -473,11 +473,12 @@ function the_meta() {
|
|||||||
global $id, $post_meta_cache;
|
global $id, $post_meta_cache;
|
||||||
|
|
||||||
if ($keys = get_post_custom_keys()) {
|
if ($keys = get_post_custom_keys()) {
|
||||||
echo "<ul>\n";
|
echo "<strong>Meta:</strong><ul>\n";
|
||||||
foreach ($keys as $key) {
|
foreach ($keys as $key) {
|
||||||
$value = implode($post_meta_cache[$id][$key],',');
|
$values = array_map('trim',$post_meta_cache[$id][$key]);
|
||||||
|
$value = implode($values,', ');
|
||||||
|
|
||||||
echo "<li>$key: $value</li>\n";
|
echo "<li><b>$key:</b> $value</li>\n";
|
||||||
}
|
}
|
||||||
echo "</ul>\n";
|
echo "</ul>\n";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user