Advertisement
Guest User

mejora de index

a guest
Sep 16th, 2010
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. <?php if (have_posts()) : ?>
  2. <?php $contador = 0; ?>
  3. <?php $postnumber = '1' ?>
  4. <?php while (have_posts()) : the_post(); ?>
  5.  
  6. <div class="post<?php if($postnumber == '1') echo $postnumber; $postnumber++; ?>" id="post-<?php the_ID(); ?>">
  7. <div class="title">
  8. <div class="date"><?php the_time('j') ?><div class="month"><?php the_time('M') ?></div></div>
  9. <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Haz click para leer <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
  10. <p class="author"><?php edit_post_link('Editar', ' | ', ' | '); ?></p>
  11. </div>
  12.  
  13. <div class="entry font-resize">
  14.  
  15. <?php $contador++;
  16. if($contador <= 3)
  17. the_content();
  18. else
  19. the_excerpt();
  20. ?>
  21. </div>
  22. <div class="postmetadata"><div class="comm-num-left"><?php comments_popup_link('Deja un comentario aquí', 'Hay un comentario. Deja el tuyo aquí', 'Hay % comentarios. Deja el tuyo aquí'); ?></div><div class="clear"></div></div>
  23. </div>
  24.  
  25. <?php endwhile; ?>
  26. <div class="backtotop"><a class="scroll" href="#top">Subir</a></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement