also, ich habe jetzt schon ein wenig rumexperimentiert aber irgendwie bekomme ich das net hin. ich möchte gern, dass bei meinem theme mehr als ein beitrag auf der startseite angezeigt wird. ich hänge jetzt mal hier die index.php an, in der hoffnung, dass jemand weiss was ich am code verändern muss..:confused:
PHP
<?php get_header(); ?>
<!-- Aktueller Artikel -->
<?php if (have_posts()) : ?>
<?php if (have_posts()) : the_post() ?>
<div class="entrybox" id="entry">
<div class="date_box">
<div class="date_day"><?php the_time('d');?>.</div>
<div class="date"><?php the_time('F');?><br><?php the_time() ?> Uhr</div>
</div>
<div class="entrycomments">
<?php comments_popup_link(__('0'), __('1'), __('%'), 'commentslink', __('-')); ?>
</div>
<h3 class="entrytitle" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
<p><?php _e("gespeichert unter:"); ?> <?php the_category(',') ?></p>
<div style="clear:both; border-top: 3px solid #000000;" class="entrybody">
<?php the_content(__('Artikel weiterlesen'));?>
</div>
<?php trackback_rdf(); ?>
<?php endif; ?>
</div>
<br>
<!-- Weitere Artikel unter Berueckstigung der Einstellungen im Admin-Menue -->
<!-- Artikel Navigation -->
<div style="margin-top:10px; float:right;" align="right"><?php wp_pagebar(array('before'=>'<strong>Artikel durchblättern:</strong> '))?></div>
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/morenews.jpg">
<div style="clear:both;"></div>
<div id="artikelmore_box">
<div id="artikelmore_content">
<div id="entry">
<?php while(have_posts()) : the_post() ?>
<div class="date_box">
<div class="date_day"><?php the_time('d');?>.</div>
<div class="date"><?php the_time('F');?><br><?php the_time() ?> Uhr</div>
</div>
<div class="entrycomments">
<?php comments_popup_link(__('0'), __('1'), __('%'), 'commentslink', __('-')); ?>
</div>
<h3 class="entrytitle" id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
<p><?php _e("gespeichert unter:"); ?> <?php the_category(',') ?></p>
<div style="clear:both; border-top: 3px solid #C7C7C7;" class="entrybody"></div>
<?php endwhile; ?>
</div>
</div>
</div>
</div>
<br><br>
<?php else : ?>
<h2 class="center">Leider nichts gefunden.</h2>
<p class="center">Sorry, aber Du suchst nach etwas, das nicht hier ist.</p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
<?php get_sidebar(); ?>
</div>
</div>
</div>
<?php get_footer(); ?>
Alles anzeigen