Loop wordpress doesn't work
-
Hello everybody !
the Loop wordpress :
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
<?php the_content(); ?>the code works in the index page, all article are schown, but in another page (for example page.php or archive.php), nothing happens !
If i put the code <?php echo (‘we are in the loop’) ?> after the if, it appears correctly.Do i need to do something special ? Maybee i missed something. My loop works in index page but not in another.
Thanks for you help !
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Loop wordpress doesn't work’ is closed to new replies.