Guten Morgen liebe Gemeinde,
ich hoffe, dass ihr mir helfen könnt, da ich am verzweifeln bin.
Wenn ich mein Archiv aufrufe und auf einen Artikel klicke, bekomme ich immer eine komische Ausgabe :/ (siehe Bild)
Das hier steht in der Archiv.php
PHP
<?php get_header(); ?>
<?php
$i = 0;
if (have_posts()) : while (have_posts()) : the_post();
?>
<?php if ($i == 0): ?>
<?php if (!in_category( array('5','53')) ){ ?>
<div class="sidebar_newshead_right">
<div class="comment">
<?php if (function_exists('get_recent_comments')) { ?>
<div class="info"><?php _e('Letzte Kommentare:'); ?></div>
<?php get_recent_comments(); ?>
<?php } ?>
<?php } ?>
</div>
</div> <div class="first_post_wrapper">
<div id="maincontent" align="center">
<div class="navigation_top_start" align="left" >
<?php
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar1') ) : ?>
<!-- Keine Widgets! -->
<?php endif; ?>
<script type="text/javascript">
//<![CDATA[
jQuery("#cat").selectbox();
//]]>
</script>
</div>
<div class="newshead" align="left">
<div class="block">
<div class="info" style="margin-left:360px;"><?php the_category(', '); ?></div>
<div class="title" style="margin-left:360px;"><?php the_title(); ?></div>
<div class="newsline" style="margin-left:360px;"><?php the_author(); ?> - <?php the_time('d.m.Y G:i'); ?></div>
<div class="rezi" style="margin-left:360px;"><?php the_excerpt(25); ?></div>
<div class="first_post_metadata" style="margin-left:360px;">
<a href="<?php the_permalink(); ?>">mehr</a>
<?php //the_tags('Tags: ', ', ', '<br />'); ?>
<?php //the_category(', ') ?> <!--| -->
<?php //comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
</div></div></div></div>
</div>
<?php get_sidebar(); ?>
<div id="maincontent" align="center">
<div align="center"><?php wp_pagenavi(); ?> </div>
<div class="content" align="left" >
<?php else: ?>
<?php if (!in_category( array('5','53')) ){ ?>
<?php include('post.php'); ?><?php } ?>
<?php endif; ?>
<?php $i++; endwhile; ?>
</div></div>
<?php else : ?>
<h2>Not Found</h2>
<?php endif; ?>
<?php get_footer(); ?>
Alles anzeigen
Weiß jemand was da zu tun ist? :/