Hallo, wie die Überschrift schon sagt, würde ich gern eine einzige Kategorie anzeigen lassen. Eventuell auch 2.
Bisher sehe ich leider immer nur die Vorschläge das man Kategorien ausschließt. Jedoch ist das auf Dauer keine Lösung wie ich finde.
Daher nochmal die Frage:
Wie genau, kann man auf der Startseite nur eine Kategorie anzeigen lassen ?
Oder wäre es besser eine Statische Seite zu machen und dann da wiederum nur die Kategorie ausgeben zu lassen ? - Wenn ja, würde ich mich über eine Erklärung freuen, wie ich das bewerkstelligen kann.
LG
Ps:
Meine Index sieht so aus:
PHP
<?php get_header(); ?>
<div class="contentLayout">
<div class="content">
<div class="Block">
<div class="Block-body">
<div class="BlockContent">
<div class="BlockContent-body">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --></small>
<div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
</div>
<p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
</div>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
</div>
</div>
</div>
<div class="Block-tl"></div>
<div class="Block-tr"><div></div></div>
<div class="Block-bl"><div></div></div>
<div class="Block-br"><div></div></div>
<div class="Block-tc"><div></div></div>
<div class="Block-bc"><div></div></div>
<div class="Block-cl"><div></div></div>
<div class="Block-cr"><div></div></div>
<div class="Block-cc"></div>
</div>
</div>
<div class="sidebar1">
<?php include (TEMPLATEPATH . '/sidebar1.php'); ?>
</div>
</div>
<?php get_footer(); ?>
Alles anzeigen