sorry jungs, aber ich versteh davon leider nicht so viel und probier nun schon siet stunden hier rum, aber bekomm das nicht so eingebaut, dass es überhaupt klappt und ohne fehlermeldung....
vielleicht könnt ihr mir ne kleine gedankenspritze geben...
das hier ist meine aktuelle code. mit dem ist halt der erste artikel immer anders
<?php get_header(); ?>
<?php get_sidebar(); ?>
<div id="content">
<?php if (have_posts()): ?>
<?php for ($i = 0; have_posts(); $i++ ) : the_post()?>
<?php if ( $i == 0):?>
<!-- hier dein code für den ersten eintrag-->
<div id="post-<?php the_ID(); ?>" class="post">
<p class="date"><?php the_time('j'); ?> <b><?php the_time('M'); ?></b></p>
<p class="meta"><small><?php edit_post_link('Edit', ' | ', ''); ?><br />
<?php comments_popup_link('No Comments', '1 Comment', '% Comments', 'comments'); ?></small></p>
<div class="title4">
<h2 class="title4"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
</div>
<?php $image = get_post_meta($post->ID, 'image_des_beitrags', true); ?>
<a href="<?php the_permalink() ?>"><img class="image_des_beitrags2" src="<?php get_option('siteurl'); ?>http://www.ludk.de/pic/wpn/<?php echo $image; ?>" alt="<?php the_title(); ?>" /></a>
<div class="entry2">
<?php the_excerpt_reloaded(35, '', 'none', TRUE, '<img src="http://www.ludk.de/wordpress/wp-content/themes/asterisk/images/read.png" />', FALSE, 2); ?>
</div>
</div>
<?php else:?>
<!-- hier der für alle andern....-->
<div id="post-<?php the_ID(); ?>" class="post">
<p class="date2"><?php the_time('j'); ?> <b><?php the_time('M'); ?></b></p>
<p class="meta"><small><?php edit_post_link('Edit', ' | ', ''); ?><br />
<?php comments_popup_link('No Comments', '1 Comment', '% Comments', 'comments'); ?></small></p>
<?php $image = get_post_meta($post->ID, 'image_des_beitrags', true); ?>
<a href="<?php the_permalink() ?>"><img class="image_des_beitrags" src="<?php get_option('siteurl'); ?>http://www.ludk.de/pic/wpn/<?php echo $image; ?>" alt="<?php the_title(); ?>" /></a>
<div class="title5">
<h2 class="title5"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
</div>
<div class="entry">
<?php the_excerpt_reloaded(20, '', 'none', TRUE, '<img src="http://www.ludk.de/wordpress/wp-content/themes/asterisk/images/read.png" />', FALSE, 2); ?>
</div>
</div>
<?endif?>
<?php endfor; ?>
<div class="navigation">
<div class="alignleft"><?php previous_posts_link('« Newer Entries') ?></div>
<div class="alignright"><?php next_posts_link('Older Entries »') ?></div>
</div>
<?php else: ?>
<h1 class="pagetitle">Not Found</h1>
<p>Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
</div>
<!-- end content -->
<?php get_footer(); ?>
Alles anzeigen
könnt ihr mir da zeigen wo ichs einbaun muss? danke auf jeden fall schon mal für die mühe bis jetzt. lg lumo