Ich habe doch ein Problem...
Habe das nun mit folgendem Artikel gelöst:
Klick!
Soweit funktioniert auch alles, ich habe nun aber das folgende Problem:
Wenn ich einstelle, dass drei Artikel angezeigt werden sollen , sind auf Seite 2 die gleichen Artikel wie auch auf Seite 1, sprich, ich kann den vierten Artikel nicht sehen. Dies muss an folgendem Code liegen:
<?php query_posts('caller_get_posts=1'); ?>
Hier mal mein kompletter Code (geht unten noch weiter, aber das ist ja hierfür nicht relevant)
<?php get_header() ?>
<?php // Sticky Post
query_posts('p=' . $sticky[0]); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php if (is_sticky()) { ?>
<div id="slider">
<div><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title_attribute(); ?>"><?php the_post_thumbnail( 'index-view' ); ?></a></div>
<div id="slider_title">
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ) ?> <?php the_title_attribute(); ?>">
<p class="newstitle"><?php the_title(); ?></a></p>
<p class="category"><?php the_category(', ') ?></p><p class="date_"><?php the_time('l, j. F Y') ?><?php printf( __( ' von %s', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ) ?> </p>
<p class="entry-comments-link"><a href="<?php the_permalink() ?>#comments" rel="nofollow" title="Sag' deine Meinung, gib eine Kommentar ab!"><?php comments_number('No Comments', '1 Comment', '% Comments'); ?></a></p>
</div>
</div>
<?php } ?>
<?php endwhile; else : endif; ?>
<div id="content_">
<div class="padder">
<div id="newstitle"><p class="newstitle_">Aktuelle News</p><p class="archiv"><a href="#">[ Archiv ]</a></p>
</div>
<?php do_action( 'bp_before_blog_home' ) ?>
<div class="page" id="blog-latest">
<?php query_posts('caller_get_posts=1'); ?>
<?php if ( have_posts() ) : ?>
<?php while (have_posts()) : the_post(); ?>
Alles anzeigen
Wer kann mir helfen??
Ich will am Ende nur, dass der Sticky nicht doppelt angezeigt wird, denn momentan wird er mir im "unteren" Loop auch angezeigt...