Hallo,
ich habe mit folgendem Code eine Unterseite generiert, die nur eine Kategorie enthält. Wie kann ich da jetzt einstellen dass die Sortierung nicht nach dem Datum läuft, sondern nach einer Nummer die im Titel des Beitrages als erstes steht? Wie kann ich das da einbauen?
Danke euch allen!
ZitatAlles anzeigen<?php
/*
Template Name: Projekte
*/
?>
<?php get_header(); ?>
<div id="content">
<?php query_posts('posts_per_page=10&cat=12&paged='.$paged); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div id="storytitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link zu: <?php the_title(); ?>">
<?php the_title(); ?></a></div><div class="storycontent">
<?php the_content(__('(more...)')); ?>
</div>
<div class="feedback">
<?php wp_link_pages(); ?>
<?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
</div></div>
<?php endwhile; ?>
<?php else : ?>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
<?php get_footer(); ?><?php get_sidebar(); ?>