Ich möchte auf der Startseite meines Blogs nur ausgewählte Kategorien anzeigen. Daher würde ich gerne wisse, was ich da in meiner index.php ändern muss.
Meine index.php sieht momentan so aus:
PHP
<?php get_header(); ?>
<div id="myslider">
<?php include (TEMPLATEPATH . '/slider.php'); ?>
</div>
<div class="clear"></div>
<div id="catmenucontainer">
<div id="catmenu">
<ul>
<?php wp_list_categories('sort_column=name&title_li=&depth=4'); ?>
</ul>
</div>
</div>
<div class="clear"></div>
<div id="casing">
<div id="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="single" id="post-<?php the_ID(); ?>">
<div class="title">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="date"><span class="author"> Von <?php the_author(); ?></span> <span class="clock"> <?php the_time('j - F - Y'); ?></span><span class="comm"><?php comments_popup_link('ADD COMMENTS', '1 COMMENT', '% COMMENTS'); ?></span> </div>
</div>
<div class="cover">
<div class="entry">
<?php $preview = get_post_meta($post->ID, 'preview', $single = true); ?>
<img class="custim" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo $preview; ?>&h=120&w=180&zc=1" alt=""/>
<?php the_content_limit(500); ?>
<div class="clear"></div>
</div>
</div>
<div class="singleinfo">
<div class="more"> <a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"> WEITERLESEN ></a> </div>
</div>
</div>
<?php endwhile; ?>
<div id="navigation">
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
</div>
<?php else : ?>
<h1 class="title">Nicht gefunden</h1>
<p>Sorry, keine Suchergebnisse.</p>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Alles anzeigen