最后一句放循环内则错

解决方案 »

  1.   

    <h2><?php  while(have_posts())
                     {    
                      the_post();                  
         
     } 

    ?></h2>
    <a href="<?php the_permalink()?>"><?php the_title(); ?></a>
      

  2.   

    放循环里面,你要这么写<h2>
        <?php  while(have_posts())  {    
            the_post();                  
         ?>
        <a href="<?php the_permalink()?>"><?php the_title(); ?></a>
        <?php } ?>
    </h2>