Erstmal danke dir für deine Hilfe!
Das klappt jetzt soweit, jetzt hab ich aber das Problem das die Rechte Navigation nicht mehr klappt! Kann auf jede Kategorie klicken jedoch bleibe ich immer auf der Startseite! An was liegt das? Kann mir hier jemand weiterhelfen? Auch die Suche funktioniert nun nicht mehr
Der bisherige Code in meiner Index.php:
<?php get_header(); ?>
<div id="text-inhalt">
<?php $top_query = new WP_Query('cat=1&showposts=1'); ?>
<?php while($top_query->have_posts()) : $top_query->the_post(); ?>
<h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="storycontent">
<?php the_content(__('(more...)')); ?>
<?php wp_link_pages(); ?>
<?php edit_post_link('Bearbeiten', '<span class="bearbeiten"> ', ' </span>'); ?>
</div>
<div class="feedback">
<img src="<?php bloginfo('stylesheet_directory'); ?>/grafik/autor-icon.gif" alt="Autor: " width="14" height="13" /> <?php the_author() ?> • <img src="<?php bloginfo('stylesheet_directory'); ?>/grafik/uhr-icon.gif" alt="Uhrzeit: " width="14" height="13" /> <?php the_time() ?> • <img src="<?php bloginfo('stylesheet_directory'); ?>/grafik/puzzle-icon.gif" alt="Abgelegt unter: " width="14" height="13" /> <?php the_category(',') ?> • <img src="<?php bloginfo('stylesheet_directory'); ?>/grafik/kommentar-icon.gif" alt="Anzahl Kommentare:" width="14" height="13" /> <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
</div>
<?php comments_template(); ?>
<?php endwhile; ?>
<?php $top_query = new WP_Query('cat=2&showposts=1'); ?>
<?php while($top_query->have_posts()) : $top_query->the_post(); ?>
<h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="storycontent">
<?php the_content(__('(more...)')); ?>
<?php wp_link_pages(); ?>
<?php edit_post_link('Bearbeiten', '<span class="bearbeiten"> ', ' </span>'); ?>
</div>
<div class="feedback">
<img src="<?php bloginfo('stylesheet_directory'); ?>/grafik/autor-icon.gif" alt="Autor: " width="14" height="13" /> <?php the_author() ?> • <img src="<?php bloginfo('stylesheet_directory'); ?>/grafik/uhr-icon.gif" alt="Uhrzeit: " width="14" height="13" /> <?php the_time() ?> • <img src="<?php bloginfo('stylesheet_directory'); ?>/grafik/puzzle-icon.gif" alt="Abgelegt unter: " width="14" height="13" /> <?php the_category(',') ?> • <img src="<?php bloginfo('stylesheet_directory'); ?>/grafik/kommentar-icon.gif" alt="Anzahl Kommentare:" width="14" height="13" /> <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
</div>
<?php comments_template(); ?>
<?php endwhile; ?>
<?php $top_query = new WP_Query('cat=3&showposts=1'); ?>
<?php while($top_query->have_posts()) : $top_query->the_post(); ?>
<h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="storycontent">
<?php the_content(__('(more...)')); ?>
<?php wp_link_pages(); ?>
<?php edit_post_link('Bearbeiten', '<span class="bearbeiten"> ', ' </span>'); ?>
</div>
<div class="feedback">
<img src="<?php bloginfo('stylesheet_directory'); ?>/grafik/autor-icon.gif" alt="Autor: " width="14" height="13" /> <?php the_author() ?> • <img src="<?php bloginfo('stylesheet_directory'); ?>/grafik/uhr-icon.gif" alt="Uhrzeit: " width="14" height="13" /> <?php the_time() ?> • <img src="<?php bloginfo('stylesheet_directory'); ?>/grafik/puzzle-icon.gif" alt="Abgelegt unter: " width="14" height="13" /> <?php the_category(',') ?> • <img src="<?php bloginfo('stylesheet_directory'); ?>/grafik/kommentar-icon.gif" alt="Anzahl Kommentare:" width="14" height="13" /> <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
</div>
<?php comments_template(); ?>
<?php endwhile; ?>
<?php $top_query = new WP_Query('cat=4&showposts=1'); ?>
<?php while($top_query->have_posts()) : $top_query->the_post(); ?>
<h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="storycontent">
<?php the_content(__('(more...)')); ?>
<?php wp_link_pages(); ?>
<?php edit_post_link('Bearbeiten', '<span class="bearbeiten"> ', ' </span>'); ?>
</div>
<div class="feedback">
<img src="<?php bloginfo('stylesheet_directory'); ?>/grafik/autor-icon.gif" alt="Autor: " width="14" height="13" /> <?php the_author() ?> • <img src="<?php bloginfo('stylesheet_directory'); ?>/grafik/uhr-icon.gif" alt="Uhrzeit: " width="14" height="13" /> <?php the_time() ?> • <img src="<?php bloginfo('stylesheet_directory'); ?>/grafik/puzzle-icon.gif" alt="Abgelegt unter: " width="14" height="13" /> <?php the_category(',') ?> • <img src="<?php bloginfo('stylesheet_directory'); ?>/grafik/kommentar-icon.gif" alt="Anzahl Kommentare:" width="14" height="13" /> <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
</div>
<?php comments_template(); ?>
<?php endwhile; ?>
</div>
<?php
if (function_exists('wp_pagebar')) {
wp_pagebar(array('before'=>'', 'tooltip_text'=>'Seite', 'next'=>'»', 'prev'=>'«')); }
else { ?>
<div class="weiter"><?php posts_nav_link(' – ', __('« Previous Page'), __('Next Page »')); ?></div>
<?php } ?>
<?php get_footer(); ?>
Alles anzeigen
Danke im vorraus!
MFG Snipes83