Give the first Post in every Page a different style…
-
Hey people,
Yes my problem is already described in the title of this thread. I want to have 3 Posts on every Page. The newest Post of EVERY Page should have a different class so that I can style it different.
I think I have to solve this with using multiple Loops. But I’m really not good enough in PHP and WordPress. So I nee your help. Right now my code is like this:
<?php get_header();?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <a href="<?php the_permalink() ?>"><?php the_title() ?> <?php endwhile; ?> <?php query_posts('posts_per_page=2&offset=1'); ?> <?php while (have_posts()) : the_post(); ?> <a href="<?php the_permalink() ?>"><?php the_title() ?> <?php endwhile;?> <div class="navigation"> <div class="alignleft"><?php next_posts_link(__('« Older Entries', 'joeybottle')) ?></div> <div class="alignright"><?php previous_posts_link(__('Newer Entries »', 'joeybottle')) ?></div> </div> <?php endif; ?> <?php get_sidebar(); ?> <?php get_footer(); ?>
Maybe somebody can help me solving my problem ??? Would be sooooo great of you. Thanks a lot,
joey the bottle
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Give the first Post in every Page a different style…’ is closed to new replies.