Loop for posts in pages
-
I’ve working on a template for pages. This template should contain a loop which lists only posts.
But the loop gives pages back but no posts.
Any ideasExample code:
<?php rewind_posts(); ?>
<?php // query_posts(‘category_name=filmtip&showposts=6’); ?>-
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <?php the_title(); ?>
<?php the_time(‘d.m.Y’,display); ?> “>mehr - <?php _e(‘Keine aktuellen Meldungen’); ?>
<?php endwhile; else: ?>
<?php endif; ?>
- <?php the_title(); ?>
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Loop for posts in pages’ is closed to new replies.