Include sticky post in loop
-
I want to use the sticky post function at my page, but cannot get it to work.
This is how I would like it to work:
Page 1
-sticky post-
-the rest of the posts in date order excluding the sticky post-
-page navigation>Page 2
-the rest of the post in date order excluding the sticky post (with no sticky post at the top of the page either)-This is how my loop looks like today:
<?php if ( have_posts() ) : ?> <?php while ( have_posts() ) : the_post(); get_template_part( 'content', get_post_format() ); endwhile; twentyfourteen_paging_nav(); else : get_template_part( 'content', 'none' ); endif; ?>
Any suggestions how to make this happen?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Include sticky post in loop’ is closed to new replies.