假设您的$hasp_expire_date = get_post_meta( $post_id, ‘hasp_expire_date’, true );
为您提供所需的正确值,您将其存储在$hasp_expire_date
变量
因此,将第二行编辑为:
$num_comments = get_comments_number( $block_data[\'id\'] );
// Pull in the value you need
$hasp_expire_date = get_post_meta( $post_id, ‘hasp_expire_date’, true );
// You are going to concatenate or add that value to your string.
$entry_comments = $hasp_expire_date.\'<i class="fa fa-speech-bubble"></i><span>\'.$num_comments.\' \'._nx( \'Comment\', \'Comments\', $num_comments, \'comments\', \'uncode\' ).\'</span>\';
希望有帮助!!