Hallo,
ich nutze seit geraumer Zeit WP mit dem Prinz-Theme für einen Veranstaltungskalender. Ich möchte jetzt die Ausgabe der Veranstaltungen jetzt so verändern, dass die jeweils aktuellste zu erst erscheint. Da ich kein PHP-Junkie bin steh ich etwas auf dem Schlauch. Die Ausgabe der Artikel wird in dem folgenden Code-Abschnitt gesteuert. Wo gebe ich dort welchen Code ein, um die Anzeige wie vorgenannt zu verändern?
PHP
// "Featured articles" module begins
$featured_query = new WP_Query('cat='.get_cat_id (prinz_get_option('prinz_featured')).'&showposts='.prinz_get_option('prinz_featurednumber').'&offset='.prinz_get_option('prinz_featuredoffset')); ?>
<?php while ($featured_query->have_posts()) : $featured_query->the_post(); ?>
<div class="feature">
<?php if (prinz_get_option('prinz_usetimthumb')) { // this function is used for the thumbnail image if TimThumb is activated
postimage(prinz_get_option('prinz_featuredimage_width'),prinz_get_option('prinz_featuredimage_height'));
}
else
if ( function_exists('has_post_thumbnail') && has_post_thumbnail() ) { // this is the default WordPress post thumbnail function
the_post_thumbnail(('featured-image'), array('class' => "alignleft"));
} ?>
<a href="<?php the_permalink() ?>" rel="bookmark" class="title">
<?php
// title of the "featured articles"
the_title(); ?>
</a> </div>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</div>
<!-- end #hometop-rightcol -->
Alles anzeigen
Danke schon mal für die Hilfe.