以下のようなコードなのですが何故か「Array」と表示されてしまいます
どこかミスがあるでしょうか
それともこれ以外のどこかが原因でしょうか
function custom_input($default){
$tmp = '<label for="point">point</label>';
$tmp .= '<select id="point" name="point">';
for ($p = 100; $p >= 0; $p--) {
$tmp .= '<option value="' . $p . '">' . $p . '</option>';
}
$tmp .= '</select></p>';
$default['fields']['email'].=$tmp;
return $default;
}
add_filter('comment_form_defaults','custom_input');
function save_comment_meta_data_point($comment_id){
$point=$_post['point'];
return update_comment_meta($comment_id,'point',$point,true);
}
add_action('comment_post','save_comment_meta_data_point');
function mytheme_comment($comment, $args, $depth) {
~
/* translators: 1: date, 2: time */
printf( __('%1$s at %2$s'), get_comment_date(), get_comment_time() ); ?></a><?php edit_comment_link( __( '(Edit)' ), ' ', '' );
?>
</div>
</div> <?php endif; ?> <?php }<?php if ( 'div' != $args['style'] ) : ?>
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/08/08 14:40