Last active
August 29, 2015 14:16
-
-
Save jhouedanou/6bdfc54a44116994c445 to your computer and use it in GitHub Desktop.
Loop pour la categorie
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (have_posts()) : ?> | |
<?php $post = $posts[0]; ?> | |
<!--pour passer d'une page a l autre--> | |
<?php post_navigation(); ?> | |
<?php while (have_posts()) : the_post(); ?> | |
<article <?php post_class() ?>> | |
<!--titre--> | |
<h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2> | |
<!--date du billet--> | |
<div class="prod"> | |
<?php posted_on(); ?> | |
</div> | |
<div class="entry" style="text-align:left;width:100%"> | |
<!--miniature--> | |
<div id="imgart" style="text-center;width:33%;float:left"> | |
<?php the_post_thumbnail('medium');?> | |
</div> | |
<!--texte--> | |
<div id="text" style="text-center;width:66%;float:left"> | |
<div class="paddingbox"> | |
<?php the_excerpt(); ?> | |
</div> | |
<a class="doks" href="<?php the_permalink(); ?>">Lire la suite →</a> | |
</div> | |
</div> | |
</article> | |
<?php endwhile; ?> | |
<?php post_navigation(); ?> | |
<?php else : ?> | |
<h2><?php _e('Nothing Found','html5reset'); ?></h2> | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment