Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if (have_posts()) : ?>
- <?php $contador = 0; ?>
- <?php $postnumber = '1' ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="post<?php if($postnumber == '1') echo $postnumber; $postnumber++; ?>" id="post-<?php the_ID(); ?>">
- <div class="title">
- <div class="date"><?php the_time('j') ?><div class="month"><?php the_time('M') ?></div></div>
- <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Haz click para leer <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
- <p class="author"><?php edit_post_link('Editar', ' | ', ' | '); ?></p>
- </div>
- <div class="entry font-resize">
- <?php $contador++;
- if($contador <= 3)
- the_content();
- else
- the_excerpt();
- ?>
- </div>
- <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>
- </div>
- <?php endwhile; ?>
- <div class="backtotop"><a class="scroll" href="#top">Subir</a></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement