2014-04-10 173 views
0

我不能为我的生活找出这个错误是什么,我说这是简单的,如果是这样,我的道歉!但我从字面上把我的头发拉出来。解析错误:语法错误,第13行意外T_CONSTANT_ENCAPSED_STRING

<?php include_once("analyticstracking.php") ?> 

<div id="loop" class="list clear" class="news-archive"> 
<ul> 

<?php $post_org = $post; ?> 
<?php query_posts('cat=-13,-10,-1,-22&posts_per_page=10&paged='.$paged'); ?> 
<?php while (have_posts()) : the_post(); ?> 

<li> 
    <div <?php post_class('post clear'); ?> id="news-archive-wrapper" class="news-archive-wrapper" > 

     <div class="news-archive-date"><p><?php the_time('M jS') ?></p></div> 

     <div class="news-archive-content"><a href="<?php the_permalink(); ?>"><p> 
<?php 
    $excerpt = get_the_title(); 
    echo string_limit_words($excerpt,15); 
?>...</p></a> 
     </div> 
    </div> 
</li> 


</ul> 

</div> 

<?php endif; ?> 
+1

哪里ENDWHILE;李关闭后?为什么endif;最后一页? –

回答

0

在(你摘录)第7行,你加入了太多的

<?php query_posts('cat=-13,-10,-1,-22&posts_per_page=10&paged='.$paged); ?> 
+0

谢谢!刚刚找到了!同时也缺少<?php结尾; ?>也接近尾声!感谢上帝! – user3519422

相关问题