2012-01-24 36 views
0

我正在與我很久以前支付的一個主題,定製一堆圖形和CSS,並通過它將其片段通過單獨的目錄通過iFrame Fancybox。試圖編輯'博客'模板,以顯示完整的文章不摘錄

,但我試圖重新格式化博客模板 - 當作爲更新目前它呈現並填充:

標題
等等等等
內容的幾行這裏/然後中旬裁員句子。
查看更多等//這些鏈接只是刷新頁面?

所以,我有點新手用PHP &想知道我是怎麼想編輯下面的「博客模板」的代碼,以便充分帖子的文字顯示,那些在中間切斷未摘錄:

<?php 
/* 
Template Name: Blog Template 
*/ 
get_header(); 
?>   
      <div id="content"> 

       <?php 
        //get exclusions for categories 
        $exclude = get_option($shortname.'_exclude_categories');     
        $exclude = str_replace(',,','|-',$exclude); 
        $exclude = str_replace(',','-',$exclude); 
        $exclude = substr($exclude, 0, -1); 
        $exclude = str_replace('|',',',$exclude); 

        query_posts('posts_per_page=&paged='.$paged.'&cat='.$exclude); 
        if(have_posts()) : while(have_posts()) : the_post(); 
       ?>  

       <div class="entry" id="post-<?php the_ID(); ?>"> 
        <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1> 
        <p class="meta">Added by <?php the_author_posts_link() ?> on <a href="<?php echo get_month_link($get_year, $get_month); ?>"><?php the_time('F jS, Y') ?></a>, filed under <?php the_category(', ') ?></p> 

        <div class="entry-content"> 
         <p><?php the_post_thumbnail('wide'); ?></p> 
         <?php the_excerpt('Read the rest of this entry &raquo;'); ?> 
         <p><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?> <a href="<?php the_permalink() ?>">~ Add your thoughts</a> | <a href="<?php the_permalink() ?>">Continue Reading</a></p> 
        </div><!-- e: entry content --> 
       </div><!-- e: entry --> 

       <?php 
        endwhile; 
        //endif; 
       ?> 

       <div class="paginate"> 
        <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?> 
       </div> 

       <?php else : ?> 

       <h2 class="center">Not Found</h2> 
       <p class="center">Sorry, but you are looking for something that isn't here.</p> 
       <?php get_search_form(); ?> 

       <?php endif; ?> 

      </div><!-- e: content --> 

<?php get_sidebar(); ?> 

<?php get_footer(); ?> 

回答

3

將the_excerpt()替換爲the_content(),就是這樣。