// We only want to do this on posts/pages/custom post types
if ($r->content_type == 'pagepost') {
$meta_value = get_post_meta( $r->id, $key, true );
echo "<div class='my_class'>" . $meta_value . "</div>";
<?php if ($s_options['showdescription'] == 1): ?>
<?php echo $r->content; ?>