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 »'); ?>
<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(); ?>