2014-02-07 54 views
0

此代碼顯示3最近發佈的帖子,白色的帖子縮略圖等。當我用「more」標籤手動打破te文本時,它只顯示文本到這個地方,但沒有「閱讀更多」。我應該編輯哪些參數?更多標籤沒有顯示「閱讀更多」WordPress的

<!-- LOOP START --> 
<?php $the_query = new WP_Query('showposts=3&cat=4'); ?> 
    <?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?> 
    <!-- THIS DISPLAYS THE POST THUMBNAIL, The array allows the image to has a custom size but is always kept proportional --> 
     <div id="hotele"><a href="<?php the_permalink() ?>"> <?php the_post_thumbnail(array(349,349));?></a> 
     <!-- THIS DISPLAYS THE POST TITLE AS A LINK TO THE MAIN POST --> 
     <div><h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2></div> 
     <!-- THIS DISPLAYS THE EXCERPT OF THE POST --> 
     <li><?php the_excerpt(); ?></li> 
     </div> 
    <?php endwhile;?> 
<!-- LOOP FINNISH --> 

回答

0

the_excerpt()將顯示40個字符,並在結束時,你可以像<a href="<?php the_permalink()?>">Read More</a>

顯示與永久準備更多的鏈接,實際單頁後