Schubs. Hat niemand eine Idee??
Beiträge von evapaula
-
-
Hallo!
Ich setze gerade mein Wordpress Blog auf, kenne mich leider mit php sehr wenig aus und habe Probleme mit der Anzeige der Kategorien und der Tags. Ich verwende ein Theme namens "Lead", das eine archive.php Seite, aber keine tag.php und keine category.php hat. Wenn ich nun in meiner Sidebar die Widgets für Archiv, Kategorien und die Tag Cloud anlege, funktioniert nur die Archiv-Ausgabe, Kategorien und Tags verlinken immer auf die 404.php.
Woran kann das denn liegen? Hier ist der Link zu meinem Blog: http://lakattun.de/
Und hier ist der Code meines archiv.php. Ich nehme an, dass auf diesen auch bei Tags und Categories zurückgegriffen werden soll.PHP
Alles anzeigen<?php get_header(); ?> <div id="leftcol"> <!--the loop--> <?php if (have_posts()) : ?> <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> <?php /* If this is a category archive */ if (is_category()) { ?> <?php echo single_cat_title(); ?> <?php /* If this is a daily archive */ } elseif (is_day()) { ?> Archiv für <?php the_time('F jS, Y'); ?> <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> <h2>Archiv für <?php the_time('F, Y'); ?></h2><br/> <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> Archiv für <?php the_time('Y'); ?> <?php /* If this is a search */ } elseif (is_search()) { ?> Suchresultate <?php /* If this is an author archive */ } elseif (is_author()) { ?> Autor Archiv <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> Blog Archiv <!--do not delete--> <?php } ?> <!-- navigation--> <?php next_posts_link('« Previous Entries') ?> <?php previous_posts_link('Next Entries »') ?> <!--loop article begin--> <?php while (have_posts()) : the_post(); ?> <!--post time--> <h4><?php the_time('j. F Y') ?></h4> <!--post title as a link--> <h1 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h1> <!--optional excerpt or automatic excerpt of the post does not show images--> <?php the_excerpt(); ?> <!--tags between html p tag posted in categories, edit link, comments--> <div style="padding-bottom:30px;"><p class="postmetadata"><h7> <?php the_author(); ?> | <a href="<?php the_permalink() ?>" title="Permalink" rel="bookmark">Permalink</a> | <img src="http://lakattun.de/lakattun_wordpress/wp-content/themes/lead/images/comment-icon-15x13 copy.png" width="15" height="13" alt="" /> <?php comments_popup_link('0 Kommentare', '1 Kommentar', '% Kommentare'); ?> | <?php the_tags('Tags: ', ', ', '<br />'); ?>Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>> </h7></p></div> <!--one post end--> <?php endwhile; ?> <!-- navigation--> <?php next_posts_link('« Previous Entries') ?> <?php previous_posts_link('Next Entries »') ?> <!-- do not delete--> <?php else : ?> Not Found <?php include (TEMPLATEPATH . '/searchform.php'); ?> <!--do not delete--> <?php endif; ?> <!--archive.php end--> </div> <!--include sidebar--> <?php get_sidebar(); ?> <!--include footer--> <?php get_footer(); ?>Hat jemand eine Idee, woran das liegt? Ich verwende Wordpress 3.0.
Vielen Dank!