2013-06-20 29 views

回答

0

繼承人簡要碼 - 編輯相應

<?php get_header(); ?> 
<?php $first = true; ?> 
<?php if (have_posts()) : while (have_posts()) : the_post();?> 
<?php if ($first){ ?> 
<div id="featured-image"><?php the_post_thumbnail('featured'); //You will need a custom size ?></div> 
<?php $first = false; ?> 
<section id="content"> 
<?php } ?> 
<section id="blog-bost" <?php post_class(); ?>> 
<?php $first = true; ?> 
<?php if($first){ 
    the_title(); 
    the_excerpt(); 
} 
else{ 
    the_post_thumbnail(); 
    the_title(); 
    the_excerpt();} ?> 
</section> 
<?php endwhile; endif; wp_reset_query(); ?> 
</section> 
<?php get_sidebar();?> 
<?php get_footer(); ?> 
+0

感謝您的代碼,但你能告訴我,我應該在哪裏改變它? 這是我的代碼:http://pastebin.com/kmd5SEjp – userdead

+0

這不會進入其他代碼.. :( – userdead

相關問題