The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] Stickies appearing in main looop (1 post)

  1. indelible heff
    Posted 2 years ago #

    Hey chaps, you say that the stickies go into the slider, but not on the content of the homepage.

    I found this was not the case.

    I edited the main loop to this to achieve the functionality I was looking for:

    <?php $the_query = new WP_Query( array( 'post__not_in' => get_option( 'sticky_posts' ) ) ); ?>
    			<?php if ( $the_query->have_posts() ) :  ?>
    				<div class="entries">
    					<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
    						<?php get_template_part( 'content', get_post_format() ); ?>
    					<?php endwhile; ?>
    				</div><!-- .entries -->
    				<?php pinboard_posts_nav(); ?>
    			<?php else : ?>
    				<?php pinboard_404(); ?>
    			<?php endif; ?>

    Hopefully this may help someone else havbing the same issue.

    Cheers team.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic