Servus. In meinen jetztigen Layout sieht es wie folgt aus
[COLOR=Blue]Kategorie 1 | Kategorie 2 | Kategorie 3
Artikel 1 | Artikel 1 | Artikel 1
Artikel 2 | Artikel 2 | Artikel 2[/COLOR]
Also, so ist die Ausgabe im index.php
Und so mach ich das ganze:
PHP
<?php $temp_query = $wp_query; query_posts('cat=108&showposts=1&orderby=ID&order=DESC'); ?>
<?php while (have_posts()) { the_post(); ?>
<div id="post-<?php the_ID(); ?>">
<div id="datum"> <?php the_time('d/m/Y') ?></div>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a>
</h2>
<?php $image = get_post_meta($post->ID, 'thumbnail', true); ?> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php echo $image; ?>" alt="" /></a>
<?php the_excerpt(); ?>
<?php comments_popup_link(__('0 Kommentare', 'kubrick'), __('1 Kommentar', 'kubrick'), __('% Kommentare', 'kubrick')); ?>
</div>
<?php } $wp_query = $temp_query; ?>
Alles anzeigen
So für jede Kategorie. Jetzt möchte ich aber gerne, dass der neuste Beitrag (höchste ID (?)) einen anderen Hintergrund bekommt bzw. irgendwie hervorsticht. Ist es irgendwie möglich, in diesen Code etwas einzufügen, damit dann, wenn es der neuste Beitrag ist, dieser ein anderes CSS bekommt?
Grüße