Sticky not staying at the top
-
Hi there,
Although the sticky is displaying with this current loop which ive created, its not keeping the sticky posts at the top. Does anyone know what might be causing the issue?
<?php $current_browsing_author = $wp_query->queried_object_id; // Get current browsing author $sticky = get_option( 'sticky_posts' ); rsort( $sticky ); $sticky = array_slice( $sticky, 2, 5000 ); $args = array( 'post_type' => 'update', 'posts_per_page' => 6, 'orderby' => 'date', 'post_status' => 'publish', 'post__in' => $sticky, 'paged' => ( get_query_var('page') ? get_query_var('page') : 1 ), ); query_posts($args);?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post();?> <h4><?php echo substr(get_the_title(),0,58); ?></h4> <?php the_category(', '); ?> <p> <?php echo get_excerpt(280); ?> </p> <?php endwhile; ?>
- The topic ‘Sticky not staying at the top’ is closed to new replies.