Der Code des Leadartikels steht ja in der Datei “ui.tabs.php” - Sorry, hatte ich vergessen zu erwähnen. Dort brauchst Du diese Stelle:
<!– LEAD ARTICLE –>
<div id=”fragment-1″>
<ul id=”leadarticle”>
<?php
// Lead Story module begins
query_posts('showposts=1&cat=1'); //selects 1 article of the category with ID 1 ?>
<?php while (have_posts()) : the_post(); ?>
<a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”><img src=”<?php bloginfo('url'); echo '/'; echo get_option('upload_path'); echo '/';
// this is where the Lead Story image gets printed
$values = get_post_custom_values(”leadimage”); echo $values[0]; ?>” alt=”leadimage” id=”leadpic” /></a>
<h3>
<?php
// this is where the name of the Lead Story category gets printed
wp_list_categories('include=1&title_li=&style=none'); ?>
</h3>
<a href=”<?php the_permalink() ?>” rel=”bookmark” title=”<?php __('Permanent Link to','branfordmagazine')?> <?php the_title(); ?>” class=”title”>
<?php
// this is where the title of the Lead Story gets printed
the_title(); ?>
</a>
<?php
// this is where the excerpt of the Lead Story gets printed
the_excerpt() ; ?>
<?php endwhile; ?>
</ul>
</div>
<!– END LEAD ARTICLE –>
Die blau markierten Teile sind entscheidend. Bei mir steht hier die ID 1 drin,weil das meine Kategorie mit der Bezeichnung “News” ist.
Bei der sidebar.php verhält es sich ähnlich. Such nach den Zeilen (normalerweise ab Zeile 28)
<?php if ( is_home() ) { ?>
<li>
<h3>
<?php
// this is where the name of the News (or whatever) category gets printed
wp_list_categories('include=1&title_li=&style=none'); ?>
</h3>
<?php
// this is where the last three headlines are pulled from the News (or whatever) category
query_posts('showposts=5&offset=1&cat=1');
?>
<ul class=”bullets”>
<?php while (have_posts()) : the_post(); ?>
<li><a href=”<?php the_permalink() ?>” rel=”bookmark”>
<?php the_title(); ?>
</a></li>
<?php endwhile; ?>
</ul>
</li>
<?php } ?>
<li>
Auch hier muss anden blauen Stellen die ID Deiner Kategorie rein.