Den Link zu Doku hast du gelesen? Und meinen Code auch? Den kannst du nämlich 1zu1 übernehmen, wenn es sich wirklich um die Kategorie mit der ID 1 handelt:
<?php get_header(); ?>
[COLOR=Red]
<?php
if (is_front_page()) {
query_posts("cat=1");
}
?> [/COLOR]
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="entry <?php if(is_home() && $post==$posts[0] && !is_paged()) echo ' firstpost';?>">
<h3 class="entrytitle" id="post-<?php the_ID(); ?>"> <a href="<?php the_permalink() ?>" rel="bookmark">
<?php the_title(); ?>
</a> </h3>
<div class="entrymeta">
<?php the_time('j. F Y ');?> <?php _e('| Category:','sunshine');?> <?php the_category(',');?>
</div>
<div class="entrybody">
<?php the_content(__('» Read more','sunshine'));?>
</div>
<div class="entrymetabottom">
<?php comments_popup_link(__('Leave a comment','sunshine'),__('1 comment','sunshine'),__('% comments','sunshine'),'comments-link ',__('Comments are off for this post','sunshine'));
?>
<?php if(!is_home()){ ?>
<span class="entrymeta-home">
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Both Comments and Pings are open ?>
<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Only Pings are Open ?>
<?php _e('Responses are currently closed, but you can','sunshine'); ?> <a href="<?php trackback_url(true); ?> " rel="trackback">trackback</a>, <?php _e('from your own site.','sunshine'); ?>
<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Comments are open, Pings are not ?>
<?php _e('You can skip to the end and leave a response. Pinging is currently not allowed.','sunshine'); ?>
<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
<?php _e('Both comments and pings are currently closed.','sunshine'); ?>
<?php }} ?>
<span class="entryedit"><?php edit_post_link(__('| Edit','sunshine'));?></span></span>
</div>
<!--
<?php trackback_rdf(); ?>
-->
</div>
<?php comments_template(); // Get wp-comments.php template ?>
<?php endwhile; else: ?>
<p>
<?php _e('Sorry, no posts matched your criteria.','sunshine'); ?>
</p>
<?php endif; ?>
<p>
<?php posts_nav_link(' — ', __('« Previous Page','sunshine'), __('Next Page »','sunshine')); ?>
</p>
</div>
<?php get_sidebar(); ?>
<!-- The main column ends -->
<?php get_footer(); ?>
Alles anzeigen
Ach so, wenn is_front_page (erst ab WP2.5) nicht funktioniert, kannst du auch is_home (WP < 2.5) probieren. Wenns dann immer noch nicht klappt, ists die falsche ID 