I've add the field country in the comment form. Working nice and I can see the value in the table commentmeta.
Now I try to display this value in my comment list.
In my single.php I call the list of comments:
<?php wp_list_comments('type=comment&callback=format_comment'); ?>
In my functions.php I format the comment:
function format_comment() { ?>
<div class="comment">
<p><?php comment_author(); ?></p>
<p><?php get_comment_meta( $comment->comment_ID, 'country', true ); ?></p>
<p><?php comment_date('Y/m/d - g:i A'); ?></p>
<p><?php comment_text(); ?></p>
</div>
<?php } ?>
So... to get the value for the meta country I use
<?php get_comment_meta( $comment->comment_ID, 'country', true ); ?>
Without success…
get_comment_meta()
appears to be returning nothing/NULL
/an empty string?