Problem with sticky post
-
Hello, i’m using this code for my blog page but it only shows my sticky post, the other ones doesn’t show. Does someone have an idea?
Thanks in advance<!--stickypost--> <?php /* Get all sticky posts */ $sticky = get_option( 'sticky_posts' ); /* Sort the stickies with the newest ones at the top */ rsort( $sticky ); /* Get the 5 newest stickies (change 5 for a different number) */ $sticky = array_slice( $sticky, 0, 5 ); /* Query sticky posts */ query_posts( array( 'post__in' => $sticky, 'caller_get_posts' => 1 ) ); ?> <!--endstickypost--> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2> <?php include (TEMPLATEPATH . '/inc/meta.php' ); ?> <div class="entry"> <?php the_post_thumbnail(); ?> <?php the_content(); ?> </div><!--end entry--> <div class="postmetadata"> <?php the_tags('Tags: ', ', ', '<br />'); ?> Posté dans <?php the_category(', ') ?> | <?php /*?><?php comments_popup_link('Pas de Commentaires »', '1 Comment »', '% Comments »'); ?><?php */?> </div><!--endpostmedadata--> </div><!--end post-->
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Problem with sticky post’ is closed to new replies.