解析错误:语法错误,文件意外结束但没有错误 [英] Parse error: syntax error, unexpected end of file but there is no error
问题描述
这是我的wordpress主题index.php的php代码:
<?php$i=1;while(have_posts() && i <7):the_post();$tumbUrl = '';如果(has_post_thumbnail()){$tumbUrl = wp_get_attachment_url(get_post_thumbnail_id($post->ID));}如果(我<4):?><div id="row1"><div id="tile<?echo $i?>"类=瓷砖"><div id="img<?echo $i?>"class="tileimage"<?if($tumbUrl != ''):?>style="background-image:<?echo $tumbUrl; ?>"<?endif;?></div><div id="text<?echo $i?>"class="tiletext"><a href="<?php the_permalink() ?>"rel="bookmark" title="<?php the_title(); ?>"><?php the_title();?></a></div>
<?别的:?><div id="row2"><div id="tile<?echo $i?>"类=瓷砖"><div id="img<?echo $i?>"class="tileimage"<?if($tumbUrl != ''):?>style="background-image:<?echo $tumbUrl; ?>"<?endif;?></div><div id="text<?echo $i?>"class="tiletext"><a href="<?php the_permalink() ?>"rel="bookmark" title="<?php the_title(); ?>"><?php the_title();?></a></div>