Einzelnen Beitrag anzeigen
Alt 15.06.2008, 17:24   #4 (permalink)
Mats70
PostRank: 0
 
Registriert seit: 11.06.2008
Beiträge: 15
Ich habe meine index.php nun mal versucht anzupassen
- erste Loop für den Artikel der komplett angezeigt wird
- zweite Loop für die gekürzten Einträge

Leider erhalte ich erhalte eine blank page!?!
Hat jemand einee Idee wo das script hängt?

Code:
<?php get_header(); ?>

<div id="centerTL">
<div id="centerTR">
<div id="centerBR">
<div id="centerBL">
    <div id="container">
        <div id="left">
        
  <?php $x=TRUE; if (have_posts()) : ?>
            <?php while (have_posts() && $x) : the_post(); ?>
            <?php $x=FALSE; ?>
            
            <div class="post" id="post-<?php the_ID(); ?>">
                <div class="postHeader">
                <p class="cal"><?php the_time('j') ?><small><?php the_time('F') ?></small></p>
                <h2><a href="<?php the_permalink() ?>" title="Permanenter Link zu &laquo;<?php the_title(); ?>&raquo;"><?php the_title(); ?></a></h2>
                <p class="desc"><span class="autor" title="Autor"><?php the_author() ?></span>&nbsp;<span class="cat" title="Kategorie"><?php the_category(' &raquo; ') ?></span><?php edit_post_link('Bearbeiten',' | ',''); ?></p>
                </div>
                
                <div class="postBody">
                  <?php the_content('Weiter lesen &raquo;'); ?>
                </div>
            
                <div class="postFooter">
          <span class="postComm"><?php comments_popup_link('0 Kommentare', '1 Kommentar', '% Kommentare'); ?></span>
                </div>
            </div>
            
            <?php comments_template(); ?>
            
            <?php endwhile; ?>
            
            <ul class="postScroll">
                <li class="next"><?php next_posts_link('Fr&uuml;here') ?></li>
                <li class="prev"><?php previous_posts_link('Sp&auml;tere') ?></li>
            </ul>
            
        <?php else : ?>
        
            <h3>Keinen Eintrag gefunden.</h3>
            
        <?php endif; ?>

              <?php $y=TRUE; if (have_posts()) : ?>
              <h4>weitere Artikel</h4>
              <?php while (have_posts() && $y) : the_post(); ?>
            <?php $y=TRUE; ?>
            <div class="post" id="post-<?php the_ID(); ?>">
                <div class="postHeader">
                <p class="cal"><?php the_time('j') ?><small><?php the_time('F') ?></small></p>
                <h2><a href="<?php the_permalink() ?>" title="Permanenter Link zu &laquo;<?php the_title(); ?>&raquo;"><?php the_title(); ?></a></h2>
                <p class="desc"><span class="autor" title="Autor"><?php the_author() ?></span>&nbsp;<span class="cat" title="Kategorie"><?php the_category(' &raquo; ') ?></span><?php edit_post_link('Bearbeiten',' | ',''); ?></p>
                </div>
                
                <div class="postBody">
                    <?php the_excerpt() ?>
                    <a href="<?php the_permalink() ?>">Read Full Post</a>
                  </div>
            
        </div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>

Geändert von Mats70 (15.06.2008 um 20:04 Uhr).
Mats70 ist offline   Mit Zitat antworten