Ich stehe etwas auf dem Schlauch. Ich versuch hier grad nem Bekannten zu helfen, weiss aber selbst nicht weiter.
Im Backend gibt es nur eine angelegte Kategorie für Beiträge. Die nennt sich "aktuelles".
Nund hab ich in der Sidebar folgendes.
News (gewollte Überschrift)
- All
- Aktuelles
Der Code in der Sidebar sieht so aus:
Wie krieg ich die Kategorie "all" weg?
Ich bin jetzt nicht sicher, kann es sein das ich das irgendwo in der category.php ändern muss? Wenn ja, wo? Ich bzw. wir kapierens einfach nicht.
Hier auch mal der Code der category.php
PHP
<?php include "header.php"; ?>
<div id="container">
<div class="breaker"></div>
<div id="content">
<div class="contentleft">
<div class="clearer">
</div>
<div class="post">
<?php if (have_posts()) : ?>
<h2 class="searchresult"><?php echo single_cat_title(); ?></h2>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<div class="searchdetails">
Archiv für die Kategorie '<?php echo single_cat_title(); ?>'
</div>
<?php while (have_posts()) : the_post(); ?>
<h2 class="searchresult">
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
<?php the_title(); ?>
</a>
</h2>
<div class="clearer"> </div>
<?php the_excerpt() ?>
<div class="searchinfo">
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
(Bitte hier klicken, um den gesamten Beitrag zu lesen)</a>
</div>
<div class="meta">
<?php _e("Filed under:"); ?> <?php the_category(' and') ?> von <?php the_author() ?> am <?php the_date('j. F Y') ?>, <?php comments_popup_link(__('No Comments'), __('1 Comment'), __('% Comments')); ?>
</div>
<?php endwhile; ?>
<?php else : ?>
Not Found
<?php endif; ?>
</div> <!-- This closes the singlepost div-->
<div class="postnavigation">
<div class="rightdouble">
<?php posts_nav_link('','','previous posts + »') ?>
</div>
<div class="leftdouble">
<?php posts_nav_link('','« + newer posts ','') ?>
</div>
</div> <!-- Closes the postnavigation div -->
</div> <!-- Closes the contentright div -->
</div> <!-- This closes the content div-->
<?php include('sidebar.php'); ?>
<div id="bottomcontentdouble"></div>
</div> <!-- This closes the container div-->
<?php include('footer.php'); ?>
Alles anzeigen