2014-04-10 151 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

相關問題