解析错误:语法错误,意外的文件结束 - PHP 5

use*_*968 0 syntax wordpress parsing

我调试了我的索引文件并过滤掉了我的代码.事实证明,如果我使用以下代码,该站点将返回"意外的文件结束"错误.如果我删除它,该网站显示没有错误.所以我不确定我是否缺少任何语法代码或者是否存在拼写错误.

 <?php

 // The Query
 query_posts( 'cat=9614&posts_per_page=5&tag=review' );

 // The Loop
 while ( have_posts() ) : the_post();
 ?>
 <li>
 <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
 </li>
 <?
 endwhile;

 // Reset Query
 wp_reset_query();

 ?>
Run Code Online (Sandbox Code Playgroud)

mpm*_*mpm 6

<?php而不是<?

<?php

 // The Query
 query_posts( 'cat=9614&posts_per_page=5&tag=review' );

 // The Loop
 while ( have_posts() ) : the_post();
 ?>
 <li>
 <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
 </li>
 <?php // error is here
 endwhile;

 // Reset Query
 wp_reset_query();

 ?>
Run Code Online (Sandbox Code Playgroud)