コメントを次のように繰り返す foreach ループがあります。
<?php
$comments = get_comments(array("status"=>"approve"));
foreach ( $comments as $comment ) { ?>
<div class="comment">
<h2><? echo get_comment_meta( $comment->comment_ID, "subject", $single = true ); ?></h2>
<p class="message"><?=$comment->comment_content;?></p>
</div>
<? } ?>
ライブサーバーで実行すると、次のエラーが発生します。Parse error: syntax error, unexpected end of file in D:\UniServer\www\apps\app_name\wp-content\themes\sube\page-feedback.php on line 53
これは、サイトをローカルで実行している場合には発生しません..サーバー構成エラーだと思います。
また、コンテンツをエコーするようにコードを変更すると、正常に動作します。例えば:
<?php
$comments = get_comments(array("status"=>"approve"));
foreach ( $comments as $comment ) {
echo '<div class="comment">
<h2>'; get_comment_meta( $comment->comment_ID, "subject", $single = true ); echo'</h2>
<p class="message">'.$comment->comment_content.'</p>
</div>';
} ?>